Decision Optimization

 View Only
Expand all | Collapse all

 Numerical Emphasis Precision

  • 1.   Numerical Emphasis Precision

    Posted Fri April 24, 2020 02:09 PM

    Originally posted by: Mahzad


    Hello All,

     

    I am trying to set the numerical emphasis precision parameter of an optimization program that calls CPLEX 12.9.0 in Java Eclipse by "cplex.setParam(IloCplex.Param.Emphasis.Numerical, 0);", but it has an error and wants me to change it to "cplex.tuneParam();". I appreciate any suggestions and help to resolve this issue. Does "cplex.tuneParam()" do the same thing as "cplex.setParam(IloCplex.Param.Emphasis.Numerical, 0)"?

     

    Thanks,


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Numerical Emphasis Precision

    Posted Fri April 24, 2020 03:16 PM

    The numerical emphasis parameter is a BooleanParam in the Java API, so you must set it to either true or false.

    Replace:

    cplex.setParam(IloCplex.Param.Emphasis.Numerical, 0);
    

    With:

    cplex.setParam(IloCplex.Param.Emphasis.Numerical, true);
    

    That should do the trick.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Numerical Emphasis Precision

    Posted Fri April 24, 2020 05:19 PM

    Originally posted by: Mahzad


    thanks a lot.


    #CPLEXOptimizers
    #DecisionOptimization