Initializing help system before first use

getVar Method

Gets the value assigned to a variable in a solution. This method retrieves the value assigned to a variable in a (partial) solution.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public Nullable<double> getVar(
	XPRBvar var
)

Parameters

var
Type:  BCLXPRBvar
Variable to set

Return Value

Type:  Nullable Double
Examples
XPRBprob expl1 = new XPRBprob("example1"); XPRBvar x1 = expl1.newVar("abc3", BCLconstant.XPRB_UI, 1, 100); XPRBsol sol1 = expl1.newSol(); sol1.setVar(x1,1.0); double val1 = sol1.getVar(x1,value);
See Also