Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to disable the warning message given by cplex

    Posted 09/05/13 04:23 AM

    Originally posted by: Calvin Sun Hainan


    I am using Concert Technology to run a *.mod file. It will give me the following warning with some dataset because a variable is never used.

    I have tried cplex.setWarning(null) and also try to set it to another output stream. However, the warning message still shows in my console in red. Does it mean cplex will always output the warning message to stderr? Is there anyway not letting the message to be sent to stderr?

    *** WARNING[GENERATE_207] at 567:45-141 SCB_MCO: Element "changeUB" has never been used.

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: How to disable the warning message given by cplex

    Posted 09/06/13 01:16 AM

    Hi,

     

    in the .ops file, you should change

    Warning limit The maximum number of warnings displayed.

    and use 0

     

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: How to disable the warning message given by cplex

    Posted 09/06/13 01:20 AM

    Originally posted by: Calvin Sun Hainan


    I don't really have a .ops file. Is there anyway to use CPLEX parameter to control it?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: How to disable the warning message given by cplex

    Posted 09/06/13 01:36 AM

    In your .mod, can you write

     

    execute
    {
     thisOplModel.settings.warnings=0;
    }

    ?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: How to disable the warning message given by cplex

    Posted 09/06/13 01:42 AM

    Originally posted by: Calvin Sun Hainan


    Yes, it works. Thank you very much.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer