Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Declare decision variable

    Posted 08/29/08 12:36 AM

    Originally posted by: SystemAdmin


    [Boon said:]

    Hi,

    I have a question about how to declare decision variables ONLY to the desired indices.

    I have a set named DEPOT.
    I have a data variable Active[DEPOT]. Active[DEPOT]=1 if depot is active and =0 otherwise.
    I have a binary viriable x, which index over DEPOT.

    When I declare x I type in  " dvar boolean x[DEPOT]; "
    Now x is declared all over DEPOT. I want to declare x ONLY where Active[DEPOT]=1. How can I do this?

    Thanks a lot,
    Boon
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Declare decision variable

    Posted 08/29/08 02:25 AM

    Originally posted by: SystemAdmin


    [alain.chabrier said:]

    Hi,

    if actice is data variable and not decision variable, you can do a set of active depots

    {int} activeDepot = {i| i inDepot : ActiveDepot[i]==1};

    then declare
    dvar boolean x[activeDepot];

    it should work whatever is the type of elements in the depot set (int, float, string or tuples).

    Alain
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Declare decision variable

    Posted 08/29/08 07:13 PM

    Originally posted by: SystemAdmin


    [Boon said:]

    Hi,

    Thanks for your answer Alain.

    I asked this question because when I solved the problem, there were warnings about "Decision variable ....... is obsolete."  Does this warning effect the model? What is the meaning of "is obsolete" and what does it mean in terms of solving time?

    Thanks,
    Boon

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Declare decision variable

    Posted 08/29/08 09:12 PM

    Originally posted by: SystemAdmin


    [alain.chabrier said:]

    "obsolete" means the variable is not used at any place in the model.
    Then in the problem browser it may appears with its lower bound as value.

    We did not find any better wording.

    Alain

    #DecisionOptimization
    #OPLusingCPLEXOptimizer