TRY NOW!
AMPL > >Displays and Results > >Where do I find the amount of computation (CPU) time taken by AMPL or by a solver?

AMPL provides the following built-in timing parameters such as _ampl_time and _total_solve_time. You’ll find the complete list in Table A-14 in the reference appendix of the AMPL book. These timing parameters can be used in all the same ways as ordinary AMPL parameters defined through param statements. Thus in particular you can show their values (or the values of expressions involving them) by use of display or printf commands.

Posted in: Displays and Results