Decision Optimization

Decision Optimization

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


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

Cplex cannot extract expression

  • 1.  Cplex cannot extract expression

    Posted 01/14/15 12:13 PM

    Originally posted by: m.i.907


    Hi,

    I try to solve this location model but I get the error message "CPLEX(default) cannot extract expression: maxizimize sum.... " . Is the reason nonlinearity of the model? If so, how can I solve it? Thanks is advance.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplex cannot extract expression

    Posted 01/15/15 02:51 AM

    Hi,

    could using CP be an option ?

    If you replace the beginning by

    using CP;

    {string} DP =...;
    {string} P =...;

    int a[DP] = ...;
    int b[DP] = ...;
    int D[DP] = ...;


    dvar int x[P];
    dvar int y[P];
    dvar boolean z[DP][P];
     

    then your model works

    regards


    #CPLEXOptimizers
    #DecisionOptimization