Purpose
Get the solution value
of a variable.
Synopsis
double getvsol(XPRMcontext ctx, XPRMmpvar var);
Arguments
|
ctx
|
Mosel's execution context
|
|
var
|
Reference to a decision variable
|
Return value
Solution value or 0.
Further information
This function returns the value of a given variable if the
problem has been solved successfully (LP: optimal LP solution or 0,
MIP: last integer solution or 0).
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.