The command
print {j in 1.._snvars}: _svarname[j];
gives a list of the names of the variables that are sent to the solver, after the presolve phase. Hence this list corresponds to the adjusted problem described in the "show_stats 1" statistics.
Bob Fourer
From: am...@googlegroups.com [mailto:am...@googlegroups.com]
On Behalf Of M I Shafique
Sent: Tuesday, March 26, 2013 12:56 PM
To: am...@googlegroups.com
Subject: [AMPL 6830] About reading variable names of an 'Adjusted problem' when presolve is done
Hello,
AMPL option 'show_stats 1' outputs statistics to reflect an adjusted problem. Is there any way to list all variable names in the adjusted problem?
Thanks!