Decision Optimization

Decision Optimization

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

 View Only
  • 1.  forall expression

    Posted Wed February 11, 2009 08:14 PM

    Originally posted by: SystemAdmin


    [polochon said:]

    Hi,
    I have a problem with the forall, take a look:

    forall(o in Options , s in [1..nbSlots-capacity[ o ].u+1])

    I have this error message:"Formal parameter "o" not supported in this context, can not have iterated expression"

    is there another way to formulate this expression?

    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: forall expression

    Posted Wed February 11, 2009 10:06 PM

    Originally posted by: SystemAdmin


    [Didier Vidal said:]

    A range is declared without brackets... Maybe the following would work better (I didn't test it)


    forall(o in Options , s in 1..nbSlots-capacity[ o ].u+1)


    Didier.
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: forall expression

    Posted Thu February 19, 2009 04:35 PM

    Originally posted by: SystemAdmin


    [polochon said:]

    thaks Didier :)
    #DecisionOptimization
    #OPLusingCPOptimizer