ILOG CPLEX .NET Reference Manual

Cplex.GetValue Method (INumVar)

Returns the solution value for a variable.

public virtual double GetValue(
   INumVar var
);

Parameters

var
The variable whose value is being queried. This variable must be in the active model.

Return Value

The solution value for the variable var.

Remarks

UnknownObjectException 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.GetValue Overload List