Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Handling SET

    Posted 09/22/15 01:07 AM

    Originally posted by: sandeepsinghchauhan


    I have a constraint which in which " i shows toys"  and " j shows games" and "Z is binary "

    How can i implement the following constraint in cplex - i am attaching the constraint equation

    Si =  set of all games in which the main toy is i


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Handling SET

    Posted 09/22/15 02:57 AM

    Hi,

    what about anything like

    int I=3;
    {int} S[i in 1..I]=asSet(1..i);

    dvar boolean Z[1..I];

    subject to
    {
    forall(i in 1..I) sum(j in S[i]) Z[j]<=1;
    }

    ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Handling SET

    Posted 09/22/15 06:45 AM

    Originally posted by: sandeepsinghchauhan


    Hello alex,

    Thanks for your reply. Actually the number of toys i.e. i is around 20 and j (games) around 90 and through 1 toy we can play 8 games or by some toys we can play only 1 game,2 games or sometimes 10 games.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Handling SET

    Posted 09/26/15 01:28 AM

    Hi,

    you could start from the provided example by changing the values of l and S

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer