Rutgers University AMPL Programming Supply Chain Questions
MIE 597SL Supply Chain LogisticsProf. Ana Muriel
Homework #1
Part 1: AMPL Practice Problems
Consider the example we worked on in the AMPL orientation videos:
3D Manufacturing Company must determine the mix of its 3D printers to be produced next year.
The company produces two product lines, the Rogue and the Pro.
• The average profit is $400 for each Rogue and $800 for each Pro. Fabrication and
assembly are limited resources.
• There is a maximum of 5,000 hours of fabrication capacity available per month (Each
Rogue requires 3 hours and each Pro requires 5 hours).
• There is a maximum of 3,000 hours of assembly capacity available per month (Each
Rogue requires 1 hour and each Pro requires 4 hours).
How many of each printer should be produced each month in order to maximize profit?
Recall that we formulated the problem mathematically as
Decision Variables:
X1 = the number of Rogue produced each month
X2 = the number of Pro produced each month
Z = total monthly profit from Rogue and Pro
Maximize Profit Z = 400 X1 +800 X2
Subject to:
3 𝑋1 + 5 𝑋2 ≤ 5000
𝑋1 + 4 𝑋2 ≤ 3000
𝑋1 , 𝑋2 ≥ 0
And we coded it in AMPL with model file GeneralModel.mod:
reset;
set I; /*set of products */
set J; /*set of resources */
param P{I}; /*Profit associated with product i*/
param R{I,J}; /*Amount of resource j required to produce one unit of product i */
param C{J}; /* Capacity available for resource j*/
var X{I} >=0; /* Number of units of product i produced*/
maximize profit: sum{i in I} P[i]*X[i];
subject to capacity {j in J}: sum{i in I} R[i,j]*X[i]
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics