Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  getting CPU time in OPL 3.7.1

    Posted 03/10/09 06:12 PM

    Originally posted by: SystemAdmin


    [Campeador said:]

    Hi

    Im running a script in OPL 3.7.1 and I wish to get the cpu-time spend for solving the model but I cannot seem to get it. It is possible to set a maximum allowed cpu-time so surely OPL or CPLEX keeps track of the CPU-time.

    Does anyone know how to get the CPU-time in OPL??
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: getting CPU time in OPL 3.7.1

    Posted 03/10/09 10:35 PM

    Originally posted by: SystemAdmin


    [jfk said:]

    Hello,
    it seems that the manual suggest setTimeLimit which set the CPU time limit in second. also you have the getTime method to know how much CPU time has elapsed...

    I hope it helps
    cheers

    p.s.
    of course it's not my business but investing your energy into learning 3.7 seems to be wasted if you look at the latest version, which is 6.1.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: getting CPU time in OPL 3.7.1

    Posted 03/11/09 12:28 PM

    Originally posted by: SystemAdmin


    [Campeador said:]

    Thanx Katai!

    It was so obviuos it almost hurt, I mean how to get time elapsed?? call getTime() - what else should it be called.

    Im using the version we have at our school so unfortunately it is a bit out of date. But know my script works as supposed to so thanks for the help...
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: getting CPU time in OPL 3.7.1

    Posted 03/16/09 12:52 PM

    Originally posted by: SystemAdmin


    [Campeador said:]

    [quote author=katai link=topic=1009.msg2894#msg2894 date=1236710114]
    Hello,
    it seems that the manual suggest setTimeLimit which set the CPU time limit in second. also you have the getTime method to know how much CPU time has elapsed...

    I hope it helps
    cheers



    Now I need help again. Some of my data sets are quite large and unfortunately the schools computers are not of newest date so when I run the script I tend to crash the system because of long CPU times.
    How do I set the maximum time limit in OPL 3.7.1?
    I have something lookin like thin

    Model=myModel("MarinModel.mod");

    myModel.setTimeLimit(100);
    myModel.solve();

    Which runs fine but does not respect the time limit. What would be the correct way to implement the timeLimit?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: getting CPU time in OPL 3.7.1

    Posted 03/26/09 12:45 PM

    Originally posted by: SystemAdmin


    [jfk said:]

    well, then if everything else is fine I have interpret this as a bug...
    try model.setFloatParameter(string,float)
    for time limit the manual says it should be "tiLim"


    I hope it works... if not the problem is somewhere else...

    cheers


    #DecisionOptimization
    #OPLusingCPLEXOptimizer