I am sort of new to AMPL/CPLEX. For an integer program I am solving
using AMPL/CPLEX, I would like to automatically store the solution time
(something on the lines of "_solve_elapsed_time") in my log file. The
"display" command prints it on the "standard output," but how about in
a log file?
Thanks,
Prats
display _solve_elapsed_time >your.log;
or
print _solve_elapsed_time >your.log;
--
Steven Harrod
College of Business/QAOM
University of Cincinnati
859 225 1572
For your reference, here is my AMPL code:
reset;
option reset_initial_guesses 1;
option cplex_options 'timing=1 time=18000' 'lpdisplay=1' 'mipdisplay=2
mipinterval=500 mipstartvalue=1' 'logfile=paper3/repeat/zone_2000.txt';
model paper3/repeat/zonemod.mod;
data paper3/repeat/zone_2zones_2000orders.dat;
let totalcap := 250;
solve;
#display _solve_elapsed_time > paper3/repeat/zone_2000.txt;
close paper3/repeat/zone_2000.txt;
Any suggestions?
Prats
--
Steven Harrod
Applied Arts Ltd.
Lexington, KY
859 225 1572
display _solve_elapsed_time >> your.log;
The ">>" does an append to the file and shouldn't overwrite. Tested it
on the ampl command line and it worked fine.
Joey
i am running cplex on command line and i would like to recover the solution time in an output file because this information is not printed in solution file.i tried display _ solve_elapsed_time but this option does not exist. is there any other solution ?
thanks