python-3.xcplexdocplexdocplexcloud

doopl parameter setting in python


I'm playing with doopl in python.

And I would like to set minimal gap tolerance with

opl.cplex_stats.MiPRelativeGap()=5

which doesn't work.

If possible, I want to make run-time limit.

But I couldn't find and resources that has does parameter settings.

I believe it is not allowed. Am I right?


Solution

  • You may do that in the opl model itself

    See

    https://github.com/AlexFleischerParis/zooopl/blob/master/zoosetting1.mod

    And use cplex.epgap = 0.05;