Hello
fellows,
I am a beginner with AMPL and i need your help with two issues :
1- Since i am using CPLEXAMP as a solver i had to write mipdisplay= 2 in order
to get the Computation time of CPLEX. Consequently, the computation time and a
lot of Information will be showed on the Command Line Screen and it would be
better for me to get the Computation Time in another way like exporting it to a
file to be able of reading it automatically.
please note that taking all these printed info from the command line screen to
a Log File will not be so helpful since it would be better to scan a well formatted
file like text or xml one rather than a log file (like when i have to get the
optimality gap and obejctive values).
2- the second issue is the .sol file which is supposed to be created based on
setting the 'wantsol' CPLEX option as following: 'wantsol =1 '. Even
though, i did not get it (note : as i know the .sol file would contain all the variables
in a well-indexed fashion and their values other than exporting them to several
files)
Instead of the .sol file, i created the solution.xml file via the 'endsol'
CPLEX option ( ' endsol = filename ''). This xml file has a bunch of
useful information like the optimality gap (epInt) and the objective value but
unfortunately no Computation Time, furthermore, it shows the variables and
constraints in an awful layout which i could not interpret it.
I will be thankful if you can advise me with another way to export the
computation time into a specific file and an action to create a .sol file
Thanks in advance and BR
Abdul