Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  docplex parameters?

    Posted 03/05/19 07:32 AM

    Originally posted by: ShaCplex


    Hi,

     

    Can u please assist me in setting these cplex parameters in docplex?

     

    cplexModel.setParam(IloCplex.Param.Emphasis.Numerical, true);
                cplexModel.setParam(IloCplex.IntParam.ScaInd, 1);
                cplexModel.setParam(IloCplex.DoubleParam.EpMrk, 0.9999); 
              
                
                 cplexModel.setParam(IloCplex.Param.RootAlgorithm, 4);
                 cplexModel.setParam(IloCplex.Param.Barrier.Crossover, -1);

     

     

    Regards,

    Shahul


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: docplex parameters?

    Posted 03/05/19 08:55 AM

    Please refer to the documentation for this.

    The docplex documentation explains how to set parameters in docplex, see here.

    You can find the Python parameter names from the parameter reference manual. The entry for each parameter lists the names of the parameter in the various APIs.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: docplex parameters?

    Posted 03/09/19 11:51 PM

    Originally posted by: EdKlotz


    And another source of information for questions like this is the examples that come with any of CPLEX APIs.   For DoCplex, the nurses.py example sets a couple of parameters:

     

    def solve(model, **kwargs):
        # Here, we set the number of threads for CPLEX to 2 and set the time limit \
    to 2mins.                                                                       
        model.parameters.threads = 2
        model.parameters.timelimit = 120  # nurse should not take more than that !


    #CPLEXOptimizers
    #DecisionOptimization