record the solution time

Hi all,

It is possible to see the solution time and other model information, such as number of variables, number of binary variables in the .lst file. But it is a little bit inconvenient to look for such information in .lst file. Is there any method that these information from command, and record them into gdx?

such as:

parameters
time
numv
gap;

time=model.solution_time;
numv=model.variable_number;
gap=model.gap;

Many thanks,
Kailiang


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\

I have found the solutions. we can use modelname.resusd to get the solution time. other information can be obtained in the same way. these information can be found in McCarl GAMS user guide when searching attribute.

Hope it helpful.

Best,
Kailiang

On Friday, March 8, 2013 10:50:00 AM UTC-6, Kailiang Tong wrote:

Hi all,

It is possible to see the solution time and other model information, such as number of variables, number of binary variables in the .lst file. But it is a little bit inconvenient to look for such information in .lst file. Is there any method that these information from command, and record them into gdx?

such as:

parameters
time
numv
gap;

time=model.solution_time;
numv=model.variable_number;
gap=model.gap;

Many thanks,
Kailiang


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

\