Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Engine Log

    Posted 06/05/20 10:04 AM
    Hi!

    Because I'm getting the error 'OplRun is not responding, you must relaunch the RunConfig" (probably because my model is too big) I am looking at the Engine Log to see at least some of the solutions founded with an optimality gap.
    I tried to run the model via the External Tools, but then my model run for more than a day and still did not found an optimal solution, so I stopped running the model.

    Is it possible to see the corresponding decision variables with a solution from the Engine Log?
    Or is it possible to save the Engine Log somewhere?

    Thank you in advance!

    ------------------------------
    Floor M
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Engine Log

    Posted 06/05/20 10:14 AM
    Yes, this is possible. See the chapter about postprocessing a feasible solution in the manual.

    You can also look at running out of memory for strategies to avoid running out of memory.

    There are also several limits you can set (time limit, solution limit, memory limit, ...). With such a limit set, CPLEX will stop gracefully in case the limit is hit and will return the best solution found so far.

    ------------------------------
    Daniel Junglas
    ------------------------------



  • 3.  RE: Engine Log

    Posted 06/05/20 01:14 PM
    Hi Daniel,

    Thank you for your quick response!

    I ticked the box "Postprocess feasible solutions" at Language / Run as described in the manual you've sent. 
    Do I need to add anything else to my codes? Like a postprocessing script in an execute statement to see my decision variables?

    Thanks in advance!


    ------------------------------
    Floor M
    ------------------------------



  • 4.  RE: Engine Log

    Posted 06/06/20 10:07 AM
    Hi Daniel,

    I am having some trouble displaying the decision variables..

    I ticked the box "Postprocess feasible solutions" (as described in the comment before) and I added the following at the end of my model:
    execute DISPLAY {
    writeln("u[i][v][r]=", u[i][v][r] && "w[v][r]=", w[v][r]);
    }

    u[I][v][r] and w[v][r] are the decision variables I would like to see when I get a feasible solution.
    I still get the error 'OplRun is not responding, you must relaunch the RunConfig" after some hours of running the model, and my scripting log remains empty. The engine log indicates that 10 solutions are found with different optimality gaps, but they won't display in the scripting log.
    I tried to set a time limit, but cplex just runs over this time. 

    I have read most of the manuals but I am still a little lost as you can see. 
    It would be great if you could help me out!


    ------------------------------
    Floor M
    ------------------------------



  • 5.  RE: Engine Log

    Posted 06/08/20 01:54 AM
    That is strange. This works for me without any problem. Can you double-check that you added the .ops file to the run configuration?

    I am attaching a working example of this feature (note that the example also adds a node limit since otherwise the solution process would run forever). Maybe this can help to figure out what you are missing.

    ------------------------------
    Daniel Junglas
    ------------------------------



  • 6.  RE: Engine Log

    Posted 06/09/20 04:31 AM
    It is working now, thank you so much for your help!

    ------------------------------
    Floor M
    ------------------------------