Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  IloCplex.setParam: No enum class error

    Posted 11/18/15 06:02 PM

    Originally posted by: Javid Alimohideen


    Hi,

    We see the exception below when using the API. 

    IloOplFactory oplFactory = new IloOplFactory();
    ....
    IloCplex vCplex = oplFactory.createCplex();
    vCplex.setParam(IloCplex.IntParam.MIPDisplay,0);
    

    Error

    java.lang.IllegalArgumentException: No enum class ilog.cplex.cppimpl.IloCplex$IntParam with value 2013 

         at ilog.cplex.cppimpl.IloCplex$IntParam.swigToEnum(IloCplex.java:1669) 
         at ilog.cplex.IloCplex.setParam(IloCplex.java:6215)
    

    The oplall.jar the application is using is the one packaged along with Decision Optimization Center v3.8

     

    Thanks,

    Javid


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: IloCplex.setParam: No enum class error

    Posted 11/19/15 05:43 AM

    Originally posted by: Virginie Grandhaye


    Hi Javid,

    It appears you have fall into a defect in the product.

    Thanks for reporting it, we'll work on fixing this in a future release.

    Sorry for the inconvenience.

    Best regards,

    Virginie

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: IloCplex.setParam: No enum class error

    Posted 11/19/15 06:36 AM

    Thanks Virginie.

    So maybe a workaround could be to set the settings in OPL:

    execute
    {
    cplex.mipdisplay=0;
    }

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer