command-line-interfacecplexibm-ilog-opl

How to change CPLEX parameters in oplrun?


Is there a way to let oplrun take a specific CPLEX parameter, such as CPX_PARAM_LPMETHOD (Linear Programming method). In the reference here, it is called by various names for different languages:

C Name: CPX_PARAM_LPMETHOD

C++ Name: RootAlg

Java Name: RootAlg

.NET Name: RootAlg

InteractiveOptimizer: lpmethod 

But there is no reference about the OPL or oplrun.

Is it possible to change this parameter in an oplrun session? Or do I have to use these other languages/interfaces?


Solution

  • In the .mod you may write:

    execute
    {
      cplex.lpmethod=4;
    }
    

    and then you will see in the log:

    CPXPARAM_LPMethod                                4