Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Getting presolve, root relaxation and MIP solving time separately?

    Posted Tue June 15, 2010 04:05 AM

    Originally posted by: dominizer


    Hi,

    I have written a MIP model that uses presolve, root relaxation and B&C for solving. I want to use this on a series of different data set, retrieving statistical information about the solving times for the different parts separately.

    I can nowhere find anything about getting this information. I'm aware of writing a script to get the current time and by that, I can receive the total time for all processes. My question now is, if anybody can help me to get the times of the different solution parts separately.

    Thanks a lot in advance.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Tue June 15, 2010 04:24 AM

    Originally posted by: SystemAdmin


    Did you look at the OPL profiler already?

    You can get more information on solve activities from there, in the IDE or from oplrun -profile.

    The programmatic way for accessing profiler detailed information is not documented.

    Tschau, Frank
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Tue June 15, 2010 06:10 AM

    Originally posted by: SystemAdmin


    Frank,

    is it possible to redirect the profiler info to a file?

    Regards
    Norbert
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Tue June 15, 2010 04:43 AM

    Originally posted by: dominizer


    Hi Frank,

    thanks for the reply. It's exactly the information of the profiler, that I need. However, in my perfect world, I would like to access this information in a programmatic way - avoiding the extra programming work of retrieving the information from the oplrun's -profile. So, if anybody knows a trick for that, I'd be glad to hear it.

    Cheers,
    Dom
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Tue June 15, 2010 06:09 AM

    Originally posted by: SystemAdmin


    Hi Dom,

    i'm not sure if this is what you are lookinng for, but what
    I quite often do, is some profiling like
    execute{
      var t0 = new Date();
      someFunction();
      var t1 = new Date();
      writeln(" Time for someFunction : ", t1-t0);
    }
    


    Regards
    Norbert
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Tue June 15, 2010 06:58 AM

    Originally posted by: dominizer


    Hi Norbert,

    Thanks for your reply. That is what I normally use as well. However, I can really only get this to work for the whole process of solving the MIP model in one session. If it would be possible to let the "someFunction()" be only presolve or root relaxation, then I could actually use that. But I don't know, how I would do that.

    Cheers,
    Dom
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Wed June 16, 2010 01:56 AM

    Originally posted by: SystemAdmin


    Okay - got your point.
    As far as I know this is not possible.

    Stil the open question: Is it possible to redirect the profiler
    output to a file?

    Regards
    Norbert
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Wed June 16, 2010 03:15 AM

    Originally posted by: dominizer


    Thanks Norbert!

    If anybody knows the answer to Norbert's question (redirecting the profiler output to a file), please post it here.

    Cheers,
    Dominik
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 9.  Re: Getting presolve, root relaxation and MIP solving time separately?

    Posted Thu June 17, 2010 03:13 AM

    Originally posted by: SystemAdmin


    What you can do is manually copy the content to a file.
    (Right mouse click in the profiler window - there should
    be something like "Copy content ...".)

    I am looking for an automatic way to redirect it!!

    Any suggestions?

    Norbert
    #DecisionOptimization
    #OPLusingCPLEXOptimizer