Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Forall Constraint with condition

  • 1.  Forall Constraint with condition

    Posted Mon October 18, 2010 10:48 AM

    Originally posted by: Boonyawat


    Hello,

    I am using OPL.

    I would like to create a constraint that will forall members in set A and set B such that the {A,B} is not in set C. Something like the following....

    forall( a in A, b in B: {a,b} not in C) .......
    How can I accomplish this?

    thanks so much!

    Boon
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Forall Constraint with condition

    Posted Mon October 18, 2010 12:41 PM
    Hi

    why not using

    forall( a in A, b in B: <a,b> not in C)
    


    Alex
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Forall Constraint with condition

    Posted Mon October 18, 2010 03:09 PM

    Originally posted by: Boonyawat


    Thanks!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer