Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

semi-integer variable but with "stepsize" 100 rather than 1 possible ?

  • 1.  semi-integer variable but with "stepsize" 100 rather than 1 possible ?

    Posted 04/18/13 08:15 AM

    Originally posted by: TF87


    Hello,

    I'm currently trying to model a variable which can take on values of  0, 1000, 1100, 1200, 1300 and so on. Is it possible to tell cplex, that these variables are semi-integer but they can't take on every integer value between the bounds e.g. 1000 and 2000 but values with stepsize of 100?

    By the way: is 0 always a possible value of semi-integer value?

    Thank you for your help in advance!

     

    Best Regards,

    Tobi


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: semi-integer variable but with "stepsize" 100 rather than 1 possible ?

    Posted 04/19/13 02:36 AM

    There is no direct way to do that but you could define your variable to be semi-integral and take values in {0, 10, 11, 12, 13, ...} and then multiply the variable by 100 wherever you use it. That should do the trick.

    Yes, 0 is always a valid value for a semi-continuous variable, see the User's Manual.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: semi-integer variable but with "stepsize" 100 rather than 1 possible ?

    Posted 04/19/13 03:53 PM

    Originally posted by: TF87


    Thank for your answer! :)

     

    Best regards,

    Tobi


    #CPLEXOptimizers
    #DecisionOptimization