Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Reformulation of Logical Constraint to Integer Programming Constraint

  • 1.  Reformulation of Logical Constraint to Integer Programming Constraint

    Posted Sat September 21, 2019 06:42 PM

    Originally posted by: Sultan_Niz7755


    Hello, everybody,
    I'm now working on the topic of improving patient planning in the OR using linear programming. I have implemented my model in Cplex. There is a pair of logical constraints that must be written as integer constraints. Unfortunately it was not possible to reformulate them. Can someone help me, please?
    the logical constraints I mentioned can be seen below.
    many thanks in advance

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Reformulation of Logical Constraint to Integer Programming Constraint

    Posted Sat September 21, 2019 06:44 PM

    Originally posted by: Sultan_Niz7755


     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Reformulation of Logical Constraint to Integer Programming Constraint

    Posted Sun September 22, 2019 04:15 AM

    Hi,

    can t you try to write

    y<=sum(i in I) x[i];

    ?

     

    Then if the sum is 0 then y==0

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Reformulation of Logical Constraint to Integer Programming Constraint

    Posted Mon September 23, 2019 09:06 AM

    Originally posted by: Sultan_Niz7755


    Hi Alex,

    thank you for your reply. the constraint that you wrote corresponds to the logical constraint  "(sum(p in P) X[p][r][s][d] == 0) => Y[r][s][d] == 0;".

    how can I reformulate this one(see attachment)?

    thank you in advance,

    regards,

    Sherzod


    #DecisionOptimization
    #OPLusingCPLEXOptimizer