Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPU Execution time

    Posted 02/24/16 08:47 PM

    Originally posted by: Rym


    Hello

    I 'm programming  a LP problem.

    My Opl project is made with two models : a master model and a submodel(mod2.mod).

    So, I used two "loop for "

    the first one is made  to increment the variable "v" and the second "loop for'  is made to repeat the same statement for j times in order to have the average.

    I want to calculate the aveverge of "cpu execution time" for each value of v.

    PS: I don't know how to access to values of Engine Log

     

    (MasterModel , SubModel ; Data are attached)
    thanks

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: CPU Execution time



  • 3.  Re: CPU Execution time

    Posted 02/26/16 12:38 PM

    Originally posted by: Rym


    Thanks

     

    I tried to understand and apply the various recommendations of the link but I have another question if you don't mind.

     

    When  i start oplrun -p of my configuration I get an error message(attached oplrun file) .however, that the model is correct and executable.

    I tried to apply the following script but i get different values between the result (cpu execution time) of the Scripting log and my engine Log.

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

    My model is generated and solved many times in the same execution.I get many messages (Total root+brunch&cut). So, how can I to choose the right one?

     

    thanks

     

     

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: CPU Execution time

    Posted 02/27/16 03:51 AM

    Hi,

    can you attach the full project so other users can try and help you with the unexpected error ?

    About time measure you could have a look at

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

    regards

     

    https://www.linkedin.com/pulse/low-barrier-entry-optimization-through-cplex-alex-fleischer?articleId=6084986829021470720


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: CPU Execution time

    Posted 02/28/16 03:26 PM

    Originally posted by: Rym


    Hi

     

    I'm sorry because  i still insist to have the correct  response:

     

    I read the information about Profiler and i concluded,that the row "  CPLEX MIP OPTIMIZATION" is responsable to  solve the objective function.

    When i compare the time given by "CPLEX MIP OPTIMIZATION" from Total (root+branch&cut) given by engine Log, i found a difference.

    Then, i tired to make a scipt in main script to calculate the CPU execution time i found another value.

    main {
    thisOplModel.generate();
    var time0 = new Date();
    cplex.solve();
    var time1 = new Date();
    writeln("solve time is ", (time1.getTime()-time0.getTime())/1000),"seconds");
    }

    What value among these three I have to take into consideration.

     

    Thanks


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: CPU Execution time

    Posted 02/29/16 11:38 AM

    Hi,

    to get the one you see in the log, have you tried on IloCplex in OPL scripting

    getSolvedTime
    {float} getSolvedTime()
    Returns the time it took to solve.

    ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer