Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

how to output these values during the solving process

  • 1.  how to output these values during the solving process

    Posted 10/30/13 11:34 PM

    Originally posted by: xianshuie


    I use cplex concert technology embedded in Java to solve a MIP model, I want to draw a figure like the following, in which the incumbent solution value and the lower bound are converging with the time. I want to figure out how can I output these two kinds of values during the solving process. I have tried to output a log file to an excel file, but the format is difficult to draw directly.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: how to output these values during the solving process

    Posted 10/31/13 04:27 AM

    There are two ways to do that:

    1. Parse the log file. Directly writing a log file to Excel will not help much. Instead you should register your own log stream (using IloCplex.setOut()) and in this stream parse the log to get the desired information.
    2. Use a callback (preferably an info callback). In the callback you can query primal and dual bound and print that out in whatever format you need for your plotting tool.

    #CPLEXOptimizers
    #DecisionOptimization