Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Computation Time

    Posted Fri March 27, 2015 01:22 PM

    Originally posted by: Thaher


    Dear All,

    Is there any OPL syntax or code that could output the computation time.

    Regards,


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Computation Time



  • 3.  Re: Computation Time

    Posted Wed May 13, 2015 08:26 PM

    Originally posted by: Thaher


    Hi, 

    The referred post suggested using :

    main {

    thisOplModel.generate();
    var time0 = new Date();
    cplex.solve();
    var time1 = new Date();
    writeln("solve time is ", time1-time0);
    ...
    }

    which delivers to scripting log unexplained 6 digit number if writeln("solve time is ", time1-time0) is used. 

    and delivers solve time if writeln("solve time is ", time1) is used instead. 

    Can you please advise, all what I need is to get the execution time exported into an output file. 

    Regards,

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Computation Time

    Posted Thu May 14, 2015 03:03 AM

    Hi

    you could use the writeln into a file instead of the log like in

    http://www-01.ibm.com/support/docview.wss?uid=swg21401386

    You should use IloOplOutputFile

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer