XPRBsetsosdir
PurposeSynopsisint XPRBsetsosdir(XPRBsos sos, int type, double val);
Arguments
sos Reference to a previously created SOS. type The directive type, which must be one of:
XPRB_PR XPRB_UP XPRB_DN XPRB_PU XPRB_PD val An argument dependent on the type of the directive being defined. If type is:
XPRB_PR XPRB_UP XPRB_DN XPRB_PU XPRB_PD Return value0 if function executed successfully, 1 otherwise.ExampleXPRBprob prob; XPRBsos set1; ... set1 = XPRBnewsos(prob, "sos1", XPRB_S1); XPRBsetsosdir(set1, 5); XPRBsetsosdir(set1, XPRB_DN, 0);This gives a priority of 5 to the SOS set1 and sets branching downwards as the preferred direction for set1.Further informationThis function sets any type of branching directive available in Xpress-MP. This may be a priority for branching on a SOS (type XPRB_PR), the preferred branching direction (types XPRB_UP, XPRB_DN) or the estimated cost incurred when branching on a SOS (types XPRB_PU, XPRB_PD). Several directives of different types may be set for a single set. Function XPRBsetvardir may be used to set a directive for a variable.Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.