Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  constraint

    Posted 11/22/16 03:41 AM

    Originally posted by: ShaCplex


     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Where is my constraint going wrong in OPL?

    Posted 11/22/16 04:32 AM

    Hi,

    for a given trip t and a given aircraft a, if assign[t][a] is 0 then you do not want to propagate anything but that is what you do here.

    Let me call M a number that is greater than the number of trips times the number of aircrafts.

    Can you change

    forall(t in trips, a in aircrafts) sum(k in trips: k.arrTime>=t.DepTime && k.DepTime<=t.arrTime && k.tripID!=t.tripID) 
    (assign[k][a] )+ assign[t][a]<= 1;

    into

    forall(t in trips, a in aircrafts) sum(k in trips: k.arrTime>=t.DepTime && k.DepTime<=t.arrTime && k.tripID!=t.tripID) 
    (assign[k][a] ) <= (1-assign[t][a])*M;

    regards

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Where is my constraint going wrong in OPL?

    Posted 11/23/16 02:24 AM

    Originally posted by: ShaCplex


    Hi Alex,

    Thank u very much! many days of my effort has paid off !!

    I am really thankful and really appreciate your help.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer