Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Getting and Saving Current Time

    Posted 09/22/08 05:30 AM

    Originally posted by: SystemAdmin


    [UDOPS said:]

    I am trying to time my solution progress, and am getting strange type conversion problems. This code returns a negative time. What is wrong?

    int cplexstart;

    execute {
    var temptime= new Date();
    cplexstart=temptime.getTime();
    writeln("Time: ", cplexstart);
    }
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Getting and Saving Current Time

    Posted 09/22/08 12:32 PM

    Originally posted by: SystemAdmin


    [afleischer said:]

    you get a negative value because of the overflow.

    If you wrote

    float cplexstart;

    instead

    then you would get a positive value

    Alex
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Getting and Saving Current Time

    Posted 09/23/08 03:04 AM

    Originally posted by: SystemAdmin


    [UDOPS said:]

    Thanks!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer