Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 22

Figure C.1 Rudimentary AMPL model (file RM1.

txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.2 Basic structure of an AMPL model

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.3 AMPL model for the Reddy Mikks problem (file RM2.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.3 (continued) AMPL model for the Reddy Mikks problem (file RM2.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.4 AMPL model for the Reddy Mikks problem (file RM2a.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.5 AMPL output using display profit, product, limit.dual, product.rc; in the Reddy Mikks model

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.6 Contents of the table files for inputting the parameters unitprofit, rhs, and aij of the Reddy Mikks
model

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.7 AMPL model of the bus scheduling problem of Example 2.4-5 (file BusSched.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.8 AMPL model of the transportation model of Example 5.3-1 (file TransportA.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.9 AMPL shortest route model (file ShortestRouteA.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.9 (continued) AMPL shortest route model (file ShortestRouteA.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.10 AMPL model of the maximal flow problem of Example 6.4-2 (file MaxFlow.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.10 (continued) AMPL model of the maximal flow problem of Example 6.4-2 (file MaxFlow.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.11 AMPL model for Example 6.6-2 (file CPM.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.11 (continued) AMPL model for Example 6.6-2 (file CPM.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.12 Output of AMPL model for Example 6.5-2 (file CPM.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.13 AMPL model for interactive application of the preemptive method (file GoalProg.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.13 (continued) AMPL model for interactive application of the preemptive method (file GoalProg.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.14 General AMPL model for the set covering problem of Example 9.1-2 (file SetCovering.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.15 AMPL model of the job sequencing problem of Example 9.1-4 (file JobSeq.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.16 AMPL model for Example 13.3-3 (file ConstrEOQ.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved
Figure C.17 AMPL model of Example 21.2-2 (file NLP.txt)

Copyright © 2017, 2011, 2007


Operations Research An Introduction, 10e
by Pearson Education, Inc.
Hamdy A. Taha
All Rights Reserved

You might also like