Initializing help system before first use

XPRSsetbranchbounds

XPRSsetbranchbounds


Purpose
Specifies the bounds previously stored using XPRSstorebounds that are to be applied in order to branch on a user global entity. This routine can only be called from the user separate callback function, XPRSaddcbsepnode.
Synopsis
int XPRS_CC XPRSsetbranchbounds(XPRSprob prob, void *mindex);
Arguments
prob 
The current problem.
mindex 
Pointer previously defined in a call to XPRSstorebounds that references the stored bounds to be used to separate the node.
Example
This example defines a user separate callback function for the global search:
XPRSaddcbsepnode(prob,nodeSep,NULL,0);
where the function nodeSep is defined as follows:
int nodeSep(XPRSprob prob, void *obj, int ibr, int iglsel,
            int ifup, double curval)
{
  void *index;
  double dbd;

  if( ifup )
  {
    dbd = ceil(curval);
    XPRSstorebounds(prob, 1, &iglsel, "L", &dbd, &index);
  }
  else
  {
    dbd = floor(curval);
    XPRSstorebounds(prob, 1, &iglsel, "U", &dbd, &index);
  }
  XPRSsetbranchbounds(prob, index);
  return 0;
}
Related topics

© 2001-2020 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.