Initializing help system before first use

XPRBsetdelayed

XPRBsetdelayed


Purpose
Set the constraint type.
Synopsis
int XPRBsetdelayed(XPRBctr ctr, int dstat);
Arguments
ctr 
Reference to a previously created constraint.
dstat 
The constraint type, which must be one of:
ordinary constraint;
delayed constraint.
Return value
0 if function executed successfully, 1 otherwise.
Example
The following turns the constraint ctr1 into a delayed costraint.
XPRBprob prob;
XPRBctr ctr1;
   ...
ctr1 = XPRBnewctr(prob, "r1", XPRB_E);
XPRBsetdelayed(ctr1, 1);
Further information
1. This function changes the type of a previously defined constraint from ordinary constraint to delayed constraint and vice versa.
2. Delayed or 'lazy' constraints must be satisfied for any integer solution, but will not be loaded into the active set of constraints until required.
3. Constraint properties 'include vars', 'model cut', 'delayed constraint', and 'indicator constraint' are mutually exclusive. When changing from one of these types to another you must first reset the correponding type to 0.
Related topics