Difference: PrintingInAMPL (3 vs. 4)

Revision 42008-03-04 - MichaelOSullivan

Line: 1 to 1
 
META TOPICPARENT name="AMPLSyntax"
<-- Under Construction -->
Line: 17 to 17
 option display_precision 4; to get your solution values to the same number of significant digits.
Changed:
<
<
src="four_dp.jpg"
>
>
four_dp.jpg
  Note that AMPL still keeps its numbers at full precision, so you need to be careful with your objective function values.
Changed:
<
<
src="five_dp.jpg"
>
>
five_dp.jpg
  When we change the display_precision to 5 significant digits, the displayed TotalCost and the cost calculated by using the displayed Amount values differ. If you are using rounded solution values, make sure to check the objective value before quoting your solution.
Line: 82 to 84
 close brewery.out; \end{verbatim}

Changed:
<
<
Running {\tt brewery.run} in AMPL creates a file {\tt brewery.out}.

brewery.out

\begin{verbatim} TRANSPORTATION SOLUTION -- Non-zero shipments TotalCost = 8600

Ship 300 crates of beer from warehouse A to pub 1 Ship 700 crates of beer from warehouse A to pub 5 Ship 200 crates of beer from warehouse B to pub 1 Ship 900 crates of beer from warehouse B to pub 2 Ship 1800 crates of beer from warehouse B to pub 3 Ship 200 crates of beer from warehouse B to pub 4 \end{verbatim}

>
>
Running {\tt brewery.run} in AMPL creates a file brewery.out.
  -- MichaelOSullivan - 02 Mar 2008
Deleted:
<
<
  • four_dp.jpg:
    four_dp.jpg

  • five_dp.jpg:
    five_dp.jpg
 
META FILEATTACHMENT attachment="four_dp.jpg" attr="h" comment="" date="1204604433" name="four_dp.jpg" path="four_dp.jpg" size="35091" stream="four_dp.jpg" tmpFilename="" user="MichaelOSullivan" version="1"
META FILEATTACHMENT attachment="five_dp.jpg" attr="h" comment="" date="1204604447" name="five_dp.jpg" path="five_dp.jpg" size="36558" stream="five_dp.jpg" tmpFilename="" user="MichaelOSullivan" version="1"
Added:
>
>
META FILEATTACHMENT attachment="brewery.out" attr="" comment="" date="1204604566" name="brewery.out" path="brewery.out" size="374" stream="brewery.out" tmpFilename="" user="MichaelOSullivan" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback