Returns a solution vector from the solution pool for the columns of an LP matrix.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
public virtual double[] GetValues(
	ILPMatrix matrix,
	int soln
)
Visual Basic
Public Overridable Function GetValues ( _
	matrix As ILPMatrix, _
	soln As Integer _
) As Double()

Parameters

matrix
Type: ILOG.Concert..::..ILPMatrix
The LP matrix for which to query the solution values. This LP matrix must be in the active model.
soln
Type: System..::..Int32
The index of the solution pool member for which to return solution values. A value of Cplex.IncumbentId specifies that the values returned should correspond to the incumbent rather than a member of the solution pool.

Return Value

The solution vector for columns of an LP matrix. If x is the array returned by this method, x[j] will be the solution value for the variable corresponding to column j of matrix.

Remarks

UnknownObjectException matrix is not in the active model. ILOG.Concert.Exception If the method fails, an exception of type ILOG.Concert.Exception, or one of its derived classes, is thrown.

See Also