Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  not equal to

    Posted 08/28/17 06:16 AM

    Originally posted by: Sandeep.chauhan


    dvar float+ X[i in P]

    constraint:

    X[3] == 219.1 => X[4] != 135.2;

    error
    Function operator!=(dvar float+,float)

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: not equal to

    Posted 08/28/17 06:42 AM

    Indeed != is not allowed

    you could write

    (X[3] == 219.1) => (abs(X[4] - 135.2)>=0.00001);

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: not equal to

    Posted 08/28/17 08:23 AM

    Originally posted by: Sandeep.chauhan


    (X[3] == 219.1) => (abs(X[4] - 135.2)>=0.00001);

    But what if X[4] is less than 135.2?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: not equal to

    Posted 08/28/17 04:09 PM

    Hi

    abs will take care of this

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer