|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
displaying total CPU timeHi,
I would like to record total CPU time of an algorithm in which an LP is solved a number of times. The commands such as _ampl_user_time and _ampl_time did not work for this purpose. What command should I use to display total CPU run time? Thanks, |
|
|
[AMPL 2918] Re: displaying total CPU timeHere are three functions to calculate total time; _total_solve_system_time , for system cpu seconds used by all solve commands, _total_solve_user_time , for user cpu seconds used by all solve commands, _total_solve_time , _total_solve_system_time + _total_solve_user_time check page 496 of the AMPL book, second edition Hany, On Oct 27, 3:16 am, Yasin053 <yasin...@...> wrote: > Hi, > I would like to record total CPU time of an algorithm in which an LP is > solved a number of times. The commands such as _ampl_user_time and > _ampl_time did not work for this purpose. What command should I use to > display total CPU run time? > Thanks, > -- > View this message in context:http://www.nabble.com/displaying-total-CPU-time-tp26070643p26070643.html > Sent from the AMPL mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group. To post to this group, send email to ampl@... To unsubscribe from this group, send email to ampl+unsubscribe@... For more options, visit this group at http://groups.google.com/group/ampl?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: [AMPL 2918] Re: displaying total CPU timeFor a run time of about 90 sec., _total_solve_time is 7.9375, which does not make sense. I think the reason is due to solving an LP multiple times...
When an LP is solved only once in the code, _ampl_time(which is _ampl_system_time + _ampl_user_time) gives me total CPU time. I was wondering whether someone faced the same issue with the code in which an LP is solved multiple times (as high as 50). Thanks,
|
| Free embeddable forum powered by Nabble | Forum Help |