Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  non negative operation in Constraint

    Posted 09/12/19 05:41 PM

    Originally posted by: reru90


    Hello, everybody, 

    how can I write additional just to this constraint that [j-1] equals to zero. Because it will always start [j] from zero and in this case it will be [0-1]=[-1]. I need 0 result for this case for Startservicezeit[k][j-1] if j=0. Startservicetime cannot accept negative values.

     

    forall (k in Machines)
    (sum(i,j in PatientenundDepots)(Startservicezeit[k][j]) == 
    sum(i,j in PatientenundDepots)(Distanz[i][j] + 
    Startservicezeit[k][j-1]);
    

    best regards.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: non negative operation in Constraint

    Posted 09/13/19 02:22 AM

    Hi

    what about changing

    sum(i,j in PatientenundDepots)(Distanz[i][j] +
    Startservicezeit[k][j-1]);

    into

    sum(i,j in PatientenundDepots:j!=0)(Distanz[i][j] +
    Startservicezeit[k][j-1]);

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: non negative operation in Constraint

    Posted 09/13/19 01:50 PM

    Originally posted by: reru90


    Thank you very much! It worked now! 


    #CPLEXOptimizers
    #DecisionOptimization