Click or drag to resize

XPRBsol Properties

The XPRBsol type exposes the following members.

Properties
 NameDescription
Public propertyCode examplesize Get the size of the solution. Returns the number of variables assigned to a value in a solution.
Example
C#
XPRBprob expl1 = new XPRBprob("example1");
XPRBvar x1 = expl1.newVar("abc3", BCLconstant.XPRB_UI, 1, 100);
XPRBsol sol1 = expl1.newSol();
sol1.setVar(x1,1.0);
int size = sol1.size;
Top
See Also