Initializing help system before first use

getvsol

getvsol


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