Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

How can I express a variable that only can be 25or 50 or 75…25*n

  • 1.  How can I express a variable that only can be 25or 50 or 75…25*n

    Posted Mon June 21, 2010 10:00 AM

    Originally posted by: einseins


    Hello,
    I have a integer variable :q(0)(t);
    a Boolean Variable: r(0)(t)=1 or r(0)(t)=0
    How can I express that q(0)(t)can only be 0 or 25 or 50….or 25*n( n is integer)
    thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How can I express a variable that only can be 25or 50 or 75…25*n

    Posted Mon June 21, 2010 10:07 AM

    Originally posted by: SystemAdmin


    Either replace 'q(0)(t)' by '25*q(0)(t)' in all constraints and the objective function and scale the bounds of q(0)(t) by 25 or introduce a new integer variable 'i' and the constraint 'q(0)(t) = 25 * i'.
    If possible you should do the first thing.
    #CPLEXOptimizers
    #DecisionOptimization