Returns the value that expr takes for the current solution.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual double GetValue( INumExpr expr ) |
| Visual Basic |
|---|
Public Overridable Function GetValue ( _ expr As INumExpr _ ) As Double |
Parameters
- expr
- Type: ILOG.Concert..::..INumExpr
The expression for which to evaluate the current solution.
Return Value
The value expr takes for the current solution.
Remarks
ILOG.Concert.Exception If the method fails, an exception
of type ILOG.Concert.Exception, or
one of its derived classes, is thrown.