Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Dependent Decision variables

    Posted Wed May 24, 2017 10:42 AM

    Originally posted by: D.Ram


    How can i use a decision variable which is a parameter for other decision variable? for example if i have a decision variable "M"  (int M) for selecting quantity of machines  and  another decision variable ''Load'' which indicates the amount of load, a machine handles. Now second variable should be as "Load [M]". How do i define it?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Dependent Decision variables



  • 3.  Re: Dependent Decision variables

    Posted Thu May 25, 2017 12:42 AM

    Originally posted by: D.Ram


    I may need a little more help 

    dvar int M in 1..100;

    dvar float load[M] in 0..100;

     

    how will i be able to assign this?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Dependent Decision variables

    Posted Fri May 26, 2017 03:14 PM

    Hi,

    let me share a small example:

    dvar int M in 1..100;
    dvar float loadM;
    dvar float load[1..100] in 0..100;

    subject to
    {
    forall(i in 1..100) load[i]==i;
    loadM==10;

    //loadM==load[M]
    forall(i in 1..100) (M==i)=>(load[i]==loadM);

    }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Dependent Decision variables

    Posted Sat May 27, 2017 12:22 AM

    Originally posted by: D.Ram


    Thanks Alex...this code will do my work 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer