Initializing help system before first use

add Method

This adds an XPRBexpr expression to the constraint.

Namespace:   BCL
Assembly:  xprbdn (in xprbdn.dll) Version: 37.1.1.0
Syntax
C#
VB
public void add(
	XPRBexpr l
)

Parameters

l
Type:  BCLXPRBexpr
The XPRBexpr object to add to the constraint.
Examples
XPRBprob prob = new XPRBprob("NewProb"); XPRBvar x; XPRBvar y; x = prob.newVar("x"); y = prob.newVar("y"); XPRBctr ctr = prob.newCtr("Constraint1", 5.0 * x + 20.0 * y); ... XPRBvar a, b; a = prob.newVar("a"); b = prob.newVar("b"); ctr.add(2.3*a - 4.8*b);
See Also