Decision Optimization

 View Only
  • 1.  MIP emphasis

    Posted Wed May 12, 2021 09:09 AM
    Hello,

    Is it possible to use CPLEX's MIPEmphasis parameter in docplex?

    I am talking specifically about this parameter: https://www.ibm.com/docs/en/icos/12.10.0?topic=optimizer-emphasizing-feasibility-optimality

    If yes, would it be possible to know how to use it? I couldn't find it in the docplex mp documentation.

    Thank you,
    David


    ------------------------------
    David Rey
    ------------------------------

    #DecisionOptimization


  • 2.  RE: MIP emphasis

    Posted Wed May 12, 2021 09:20 AM
    Hello

    You can set any CPLEX parameter from Docplex. the property `Model.parameters` returns a hierarchical parameter structure, from whoch you can get and set values,
    just as with the CPLEX Python API.

    In your case:

    mdl.parameters.emphasis.mip = 2 # any value from 0 to 5

    or

    mdl.parameters.mip.tolerances.mipgap = 0.02

    to set the MIP gap limit.

    Hope this helps

        Philippe.





    ------------------------------
    Philippe Couronne
    ------------------------------



  • 3.  RE: MIP emphasis

    Posted Wed May 12, 2021 07:04 PM
    Thank you very much.

    David

    ------------------------------
    David Rey
    ------------------------------