Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

about CPXbranchcallbackbranchconstraints

  • 1.  about CPXbranchcallbackbranchconstraints

    Posted 02/04/09 09:03 AM

    Originally posted by: SystemAdmin


    [shaon said:]

    Hi, all

    When I call the branchcallback,  I want to add two constraints at the current node. In my program, I call "CPXbranchcallbackbranchconstraints" twice. But only the first constrait is added. The second one cannot be added. Need I add these two constraints at the same time?

    Thanks.


    Leo





    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: about CPXbranchcallbackbranchconstraints

    Posted 02/14/09 07:28 PM

    Originally posted by: SystemAdmin


    [prubin said:]

    Calling the function twice will create two child nodes, each defined by the addition of one constraint.  If you want to create a single child that is defined by the simultaneous addition of two constraints, you call the function once, set the rcnt parameter to 2, and put the coefficients for both constraints (and their indices) in the appropriate arguments.  See the documentation for details.

    /Paul

    #CPLEXOptimizers
    #DecisionOptimization