User Tools

Site Tools


gams:how_do_i_get_the_total_model_solution_time_in_gams

How do I get the **total** model solution time in GAMS?

Q: Is there a way to access the “Compilation Time”, “Generation Time” and “Execution Time” in the same way as one can access '“Resource Usage Time” (using <modelname>.resusd)?

You can access those times with the following functions

Scalar tcomp, texec, telapsed;
tcomp = TimeComp;
texec = TimeExec;
telapsed = TimeElapsed;
Display tcomp, texec, telapsed;

Please also have a look at that entry.

gams/how_do_i_get_the_total_model_solution_time_in_gams.txt · Last modified: 2007/04/30 12:08 (external edit)