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]

Calculate your order
275 words
Total price: $0.00

Top-quality papers guaranteed

54

100% original papers

We sell only unique pieces of writing completed according to your demands.

54

Confidential service

We use security encryption to keep your personal data protected.

54

Money-back guarantee

We can give your money back if something goes wrong with your order.

Enjoy the free features we offer to everyone

  1. Title page

    Get a free title page formatted according to the specifics of your particular style.

  2. Custom formatting

    Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.

  3. Bibliography page

    Don’t pay extra for a list of references that perfectly fits your academic needs.

  4. 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

Type of paper
Academic level
Deadline
550 words

How to place an order

  • Choose the number of pages, your academic level, and deadline
  • Push the orange button
  • Give instructions for your paper
  • Pay with PayPal or a credit card
  • Track the progress of your order
  • Approve and enjoy your custom paper

Ask experts to write you a cheap essay of excellent quality

Place an order