Decision Optimization

Decision Optimization

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

 View Only
  • 1.  The Function MIN in Constraint Programming

    Posted Thu May 31, 2012 06:47 AM

    Originally posted by: Pylo


    How can i determine the minimum of two values in a constraint? My attempt with MIN(arguement,arguement) gives back the error " Die Funktion MIN(int,int) ist nicht vorhanden"(The function MIN(int,int) is not available).

    Here you can see the constraint:
    NB:forall(j in Gruppe,i in AG[j],t in Periode)
    sum(tt in Periode:tt==t&&tt<=MIN(t+6-1,AnzahlPerioden))X[i][j]tt>=MIN(6,AnzahlPerioden-t+1)*YSchicht[j][i]tt;

    It would be great if someone can help me. ;)
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: The Function MIN in Constraint Programming

    Posted Fri June 01, 2012 02:54 AM

    Originally posted by: SystemAdmin


    I am not an OPL expert but I think the correct syntax is to use all-lower case 'min'. See also the reference documentation.
    Please note that there is a separate Forum dedicated to OPL here. You may get better answers there.
    #CPLEXOptimizers
    #DecisionOptimization