Decision Optimization

Decision Optimization

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


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

Not equal to in constraints

  • 1.  Not equal to in constraints

    Posted 03/24/18 08:12 AM

    Originally posted by: sandeepsinghchauhan


    X[dv] != sum(pl in PLevel:pl.p== dv.p && pl.L == dv.L)pl.c + EPS;

     

    ERROR
    Function operator!=(dvar float+,float) not available in context CPLEX. 

     

    Please help me to resolve this.please Help

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Not equal to in constraints

    Posted 03/24/18 12:49 PM

    Hi

    dvar float x in -10..10;

    subject to
    {
    //x!=2; // forbidden
    abs(x-2)>=0.001; // allowed
    }

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer