Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to output solve time?

    Posted 10/22/12 03:16 AM

    Originally posted by: qtbgo


    Hi, I can us the following sentence to output obj value, but how to output solve time?
    writeln("obj = ", cplex.getObjValue());

    thanks
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: How to output solve time?

    Posted 10/22/12 10:10 AM

    Originally posted by: SystemAdmin


    try

    var timestamp;
    timestamp = Date();
    thisOdm.generate(cpmOpl);
    thisOdm.solve(cpmOpl);
    cpmOpl.postProcess();
    writeln ("CPM overall running time: ", Date() - timestamp);

    this is an example from a main block but a similar should work if you put it in an execute block before and after.

    Regards,
    Zahar
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: How to output solve time?

    Posted 10/22/12 10:14 PM

    Originally posted by: qtbgo


    thank you very much , I'ii try it.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: How to output solve time?

    Posted 10/22/12 10:14 PM

    Originally posted by: qtbgo


    thank you very much , I'll try it.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: How to output solve time?

    Posted 10/25/12 02:37 AM

    Originally posted by: qtbgo


    var start = new Date();

    ....

    writeln( (new Date() - start)/1000);
    #DecisionOptimization
    #OPLusingCPLEXOptimizer