Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only

How to set any CPLEX parameter in OPL

  • 1.  How to set any CPLEX parameter in OPL

    Posted 08/01/19 05:33 AM

    Hi,

    the answer https://www.ibm.com/developerworks/community/forums/html/topic?id=192b7dde-71f0-4170-ab1f-c93b0bf7731e&ps=25

    made me realize we often get similar questions.

    To set a cplex parameter, one may use a .ops file or an execute block as can be seen at https://www.ibm.com/developerworks/community/forums/html/topic?id=af1033e1-a064-4a7c-89bc-8c4123d73078&ps=25

    But sometimes there is no OPL CPLEX settings:

    Example:

    So what do do ?

     

    First find the Id in cpxconst.h that is in CPLEX_Studio129\cplex\include\ilcplex

    In this case:

    #define CPXPARAM_Output_CloneLog 1132

    And then

    execute {

    cplex.params[1132] = 1;

    }

    Of course you should replace 1132 by the identifier you find and 1 by the value you need.

    regards

    Many other how to with OPL at https://www.linkedin.com/pulse/how-opl-alex-fleischer/

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer