ILOG CPLEX .NET Reference Manual

Cplex.GetValues Method (INumVar[])

Returns solution values for an array of variables.

public virtual double[] GetValues(
   INumVar[] var
);

Parameters

var
An array of variables whose solution values are being queried. All variables must be in the active model.

Return Value

The solution values for the variables in var. If x is the array returned by this method, x[j] will be the solution value for the variable var[j].

Remarks

UnknownObjectException One of the variables specified in var 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