Decision Optimization

 View Only
Expand all | Collapse all

CP Optimizer with .NET API locked in debug mode

  • 1.  CP Optimizer with .NET API locked in debug mode

    Posted Fri August 26, 2022 08:55 AM
    Hi all,

    I am using the CP Optimizer with the .NET API. However, I cannot get it out of debug mode. Before instantiating my OplFactory I set the DebugMode to false:

    OplFactory.DebugMode = false;
    OplFactory oplF = new OplFactory();​

    But it keeps giving the warning when I run the model (IloOplFactory.setDebugMode(false) is Java syntax):

    OPL - Development Mode. Use IloOplFactory.setDebugMode(false) to switch to production mode.


    I also tried setting the OpLFactory.Debugmode = false after instantiating the OplFactory or even right before solving, but nothing worked.

    Can anyone help?



    ------------------------------
    Patrick Deenen
    ------------------------------

    #DecisionOptimization


  • 2.  RE: CP Optimizer with .NET API locked in debug mode

    Posted Tue August 30, 2022 04:42 AM
    Hello, you can ignore this message: it should be removed in the next release.

    In fact there is no debug mode for the .NET/Java API of OPL. At some point, years ago, we had an optional debug message about the shared lib which were loaded.
    This is what this message relates about.

    ------------------------------
    Vincent Beraudier
    ------------------------------