Displaying all variables
Displaying all variables:
All the variables and their reduced costs
can be displayed simultaneously by using the command
display {j in 1.._nvars} (_varname[j],_var[j],_var[j].rc);
(See page 249 of the AMPL text.)
Displaying all shadow prices:
All the constraints and their shadow prices
can be displayed simultaneously by using the command
display {j in 1.._ncons} (_conname[j],_con[j]);
(See page 249 of the AMPL text.)
AMPL Details | John Mitchell