Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Variables and Values ordering in Cplex

    Posted 04/03/16 05:36 PM

    Originally posted by: valkiri


    Hi

    Is it possible to to use variables and values ordering in Cplex like " IloSearchPhase " In CP Optimizer ?

    Thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Variables and Values ordering in Cplex

    Posted 04/04/16 01:41 AM

    Maybe "priority orders" is what you are talking about. Look for example at the reference documentation of CPXcopyorder or the section "Branch Priorities and Direction" in the reference documentation for class IloCplex.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Variables and Values ordering in Cplex

    Posted 04/05/16 08:37 PM

    Originally posted by: valkiri


    Thanks DanielJunglas for your reply

    I try cplex.setPriority();  and       cplex.setDirection() but it not work like i want.

    For instance if i have two variables  IloIntVar x(env,0,3) and  IloIntVar y(env,5,9) ant i want that the variable y must be instance before any other variables and this variable y must be take first the value 5 then 6 then 7 and so on.

     

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Variables and Values ordering in Cplex

    Posted 04/08/16 02:08 AM

    For this sort of explicit enumeration you will have to use a combination of branch and node selection callback.

    However, why do you want to do that? For example, if y is integer in a fractional solution, then why branch on y? Also, if y is 6.5 in a fractional solution then why even try the value 5?


    #CPLEXOptimizers
    #DecisionOptimization