Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Displaying Time in ILOG

Archive User

Archive UserWed June 24, 2015 10:04 AM

ALEX FLEISCHER

ALEX FLEISCHERWed June 24, 2015 10:40 AM

  • 1.  Displaying Time in ILOG

    Posted Wed June 24, 2015 10:04 AM

    Originally posted by: mikeab


    Hi Alex,

     

    I have a question. I have a pretty long heuristic algorithm that I wrote in ILOG. It has lots of execute{} blocks. I wanna know how much time it takes for each execute{} block to finish up. I'm looking for a function that can help me stamping the beginning and the end of each execute block so I can write something like this TimeEnd - TimeBegin = TimeSpent.

     

    Thanks

    Mike 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Displaying Time in ILOG

    Posted Wed June 24, 2015 10:40 AM

    Hi,

    in execute blocks you may use

    d1=new Date();

    So what you can do is declare global variables d1, d2 ...dn.

    And in many execute blocks you do di=new Date();

    Then by subtracting you can measure how much time is spent.

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer