Initializing help system before first use

XPRBgetsolsize

XPRBgetsolsize


Purpose
Get the size of an XPRBsol solution.
Synopsis
int XPRBgetsolsize(XPRBsol sol);
Argument
sol 
Reference to a previously created solution.
Return value
Size (= number of variables that have been assigned a value) of the solution, or -1 in case of an error.
Example
The following returns the size of the solution sol1.
XPRBprob expl2;
XPRBsol sol1;
int size;
   ...
expl2 = XPRBnewprob("example2");
sol1 = XPRBnewsol(expl2);
   ...
size = XPRBgetsolsize(sol1);
Related topics