Initializing help system before first use

setVar Method

Adds a variable assignment in a solution. This method sets the value of a variable in a (partial) solution.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 4.0.0.0
Syntax
C#
VB
public void setVar(
	XPRBvar var,
	double value
)

Parameters

var
Type:  BCLXPRBvar
Variable to set
value
Type:  SystemDouble
A double constant
Examples
XPRBprob expl1 = new XPRBprob("example1"); XPRBvar x1 = expl1.newVar("abc3", BCLconstant.XPRB_UI, 1, 100); XPRBvar x2 = expl1.newVar("abc1", BCLconstant.XPRB_PL, 0, XPRB.INFINITY); XPRBsol sol1 = expl1.newSol(); sol1.setVar(x1,1.0); sol2.setVar(x2,0.0);
See Also

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.