Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  debug code

    Posted 07/30/14 04:35 AM

    Originally posted by: stathis_d


    Hi guys, 

    i have a model on opl  which doesn't work properly and i am trying to trace the problem, but it is not so easy. A friend suggested that i need to find a way to extract a lp file,  but still the interpretation of the results  is hard, since the names of the variables looks strange. I am wondering if there is any way  to initialiaze names of the variable (strings) on the lp,  in order to debug the code. I know that you can do something like that on java but i am not sure what is happening with opl. Do u have any advice/ tutorial/ example that can help? 

    Regards. 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: debug code

    Posted 07/30/14 07:50 AM

    Hi,

    do you know that in the IDE you have a pretty nice debugger as can be seen in documentation

    IDE and OPL > CPLEX Studio IDE > IDE Tutorials > Using IBM ILOG Script for OPL > The multiperiod production planning example

    or

    http://pic.dhe.ibm.com/infocenter/oplinfoc/v6r3/index.jsp?topic=%2Filog.odms.ide.help%2FContent%2FOptimization%2FDocumentation%2FOPL_Studio%2F_pubskel%2Fglobals%2Feclipse_and_xplatform%2Fps_opl330.html

    The name of the variables in the lp may look strange because you reached the label threshold

    You may change this

     

    Big map naming threshold Specifies how many entries an array (or map in Concert terms) or constraint must have to be considered as big for display and naming purposes

    regards

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: debug code

    Posted 07/30/14 09:16 AM

    Originally posted by: stathis_d


    Hi, 

    thanks for the help  your suggestions solved already some of my problems


    #DecisionOptimization
    #OPLusingCPLEXOptimizer