Click or drag to resize

XPRBctrsetIncludeVars Method

Set the contstraint type. This method changes the type of a previously defined constraint from ordinary constraint to 'include vars' and vice versa. 'include vars' constraints are non-binding (type N) constraints used only to force loading of their variables into the optimizer. Constraint properties 'model cut', 'delayed constraint', 'indicator constraint' and 'include vars' are mutually exclusive. When changing one of this types to another you must first reset the corresponding type to 0.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public void setIncludeVars(
	bool i
)

Parameters

i  Boolean
true for include vars constraint, false for ordinary constraint
Example
C#
XPRBprob expl2;
XPRBctr ctrl;
expl2 = new XPRBprob("example2");
ctrl = expl2.newCtr("r1");
ctr1.setIncludeVars(true);
See Also