Solvers display the optimal objective value with a default of 10 significant digits, but the AMPL "display" command shows by default only 6 significant digits. Thus when you see 5880502608000 and 5880500000000, you are actually seeing the same value, but rounded to different numbers of significant digits. In the solver message, to see the objective value in the maximum number of significant digits possible on the computer, set
option objective_precision 0;
before solving. In the output "display", to see the objective value in the maximum number of significant digits possible on the computer, set
option display_precision 0;
before giving the command "display wealth;".
Bob Fourer
am...@googlegroups.com
=======