Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

how to get the every part of Elapsed time

  • 1.  how to get the every part of Elapsed time

    Posted Thu April 26, 2018 05:32 AM

    Originally posted by: savant_ning


    I  observed the cplex log, and I had see the Elapsed time in every part,

     

    and I want to get the Elapsed time of the each part,  

     

    in python,  get_time() is just obtain the run time of the model.

     

    so is there any function to obtain each part Elapsed time?  for example, the presolve time, the probing time and so on.

     

    I need print in file~

     

    thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: how to get the every part of Elapsed time

    Posted Mon April 30, 2018 01:32 AM

    No, there are no functions to query these times with an API. The only thing you can do to get them is to parse the log. You can use Cplex.set_results_stream() etc to redirect the log output to a function that does that parsing.


    #CPLEXOptimizers
    #DecisionOptimization