Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Get integer value

    Posted 03/23/09 06:08 AM

    Originally posted by: SystemAdmin


    [ayiesal said:]

    Hi everybody, I'm a new CPLEX user.
    If I have file example.lp, which looks like this:

    Maximize
      143 x + 60 y
    Subject To
      120 x + 210 y < 15000<br />    110 x + 30 y < 4000<br />          x + y < 75<br />End

    I will get the solution value of x=21.875.00 and y=53.12500
    My question is, how can I get the integer values? Something like x=22 and y=52. Thanks in advance...
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Get integer value

    Posted 03/26/09 06:07 AM

    Originally posted by: SystemAdmin


    [liuran said:]

    There's a function called "Iloceil", try it.

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Get integer value

    Posted 03/26/09 05:54 PM

    Originally posted by: SystemAdmin


    [prubin said:]

    Declare x and y to be integer variables.  See the chapter "Discrete Optimization" in the User's Manual.
    #CPLEXOptimizers
    #DecisionOptimization