ILOG CPLEX .NET Reference Manual

Cplex.GetValues Method (ILPMatrix, Int32, Int32)

Returns the solution vector for a range of num columns of an LP matrix, starting at the index specified by start.

public virtual double[] GetValues(
   ILPMatrix matrix,
   int start,
   int num
);

Parameters

matrix
The LP matrix for which to query the solution values. This LP matrix must be in the active model.
start
The index of the first column whose solution value is being queried.
num
The number of consecutive columns for which to query the solution value.

Return Value

The solution vector for the specified 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+start 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

Cplex Class | ILOG.CPLEX Namespace | Cplex.GetValues Overload List