XPRS_bo_create
int XPRS_CC XPRS_bo_create(XPRSbranchobject* p_bo, XPRSprob prob, int isoriginal);
p_bo
|
Pointer to where the new object should be returned.
|
||||
prob
|
The problem structure that the branching object should be created for.
|
||||
isoriginal
|
If the branching object will be set up for the original matrix, which determines how column indices are interpreted when adding bounds and rows to the object:
|
XPRSbranchobject CreateBinaryBranchObject(XPRSprob xp_mip, int icol) { char cBndType; double dBndValue; int isoriginal = 1; XPRSbranchobject bo = NULL; /* Create the new object with two empty branches. */ XPRS_bo_create(&bo, xp_mip, isoriginal); XPRS_bo_addbranches(bo, 2); /* Add bounds to branch the column to either zero or one. */ cBndType = 'U'; dBndValue = 0.0; XPRS_bo_addbounds(bo, 0, 1, &cBndType, &icol, &dBndValue); cBndType = 'L'; dBndValue = 1.0; XPRS_bo_addbounds(bo, 1, 1, &cBndType, &icol, &dBndValue); /* Set a low priority value so our branch object is picked up */ /* before the default branch candidates. */ XPRS_bo_setpriority(bo, 100); return bo; }
XPRS_bo_create | Creates a new, empty branching object with no branches. |
XPRS_bo_addbranches | Adds new, empty branches to the object. Branches must be created before column bounds or rows can be added to a branch. |
XPRS_bo_addbounds | Adds new column bounds to a given branch of the object. |
XPRS_bo_addrows | Adds new constraints to a given branch of the object. |
XPRS_bo_setpriority | Sets the priority value for the object. These are equivalent to the priority values for regular MIP entities that can be set through directives (see also Appendix The Directives (.dir) File). |
XPRS_bo_setpreferredbranch | Specifies which of the child nodes corresponding to the branches of the object should be explored first. |
XPRS_bo_store | Adds the created object to the candidate list for branching. |
© 2001-2025 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.