19
(b) Explain why the reheat time constraints added in Figure 1-6a result in a higher production of
plate and a lower production of bands.
(c) Use
AMPL to verify the following statements: If the available reheat time is increased from 35
to 36 in the data of Figure 1-6b, then the profit goes up by $1800 as predicted in Section 1.6. (To
change the reheat time without changing and reading the data file over again, type let
avail["reheat"] := 36.) If the reheat time is further increased to 37, the profit goes up by
another $1800. However, if the reheat time is increased to 38, there is a smaller increase in the
profit, and further increases past 38 have no effect on the optimal profit at all.
By trying some other values of the reheat time, confirm that the profit increases by $1800 per extra
hour for any number of hours between 35 and 37
9
/
14
, but that any increase in the reheat time
beyond 37
9
/
14
hours doesn’t give any further profit.
Draw a plot of the profit versus the number of reheat hours available, for hours ≥ 35.
(d) To find the slope of the plot from (c) — profit versus reheat time available — at any particular
reheat time value, you need only look at the shadow price of Time["reheat"]. Using this
observation as an aid, extend your plot from (c) down to 25 hours of reheat time. Verify that the
slope of the plot remains at $6000 per hour from 25 hours down to less than 12 hours of reheat
time. Explain what happens when the available reheat time drops to 11 hours.
1-4. Here is a similar profit-maximizing model, but in a different context. An automobile manu-
facturer produces several kinds of cars. Each kind requires a certain amount of factory time per car
to produce, and yields a certain profit per car. A certain amount of factory time has been scheduled
for the next week, and it is desired to use all this time; but at least a certain number of each kind of
car must be manufactured to meet dealer requirements.
(a) What are the data values that define this problem? How would you declare the sets and param-
eter values for this problem in
AMPL? What are the decision variables, and how would you declare
them in
AMPL?
(b) Assuming that the objective is to maximize total profit, how would you declare an objective in
AMPL for this problem? How would you declare the constraints?
(c) For purposes of experiment, suppose that there are three kinds of cars, known at the factory as
T, C and L, that 120 hours are available, and that the time per car, profit per car and dealer orders
for each kind of car are as follows:
Car time profit orders
T 1 200 10
C 2 500 20
L 3 700 15
How much of each car should be produced, and what is the maximum profit? You should find that
your solution specifies a fractional amount of one of the cars. As a practical matter, how could you
make use of this solution?
(d) If you maximize the total number of cars produced instead of the total profit, how many more
cars do you make? How much less profit?
(e) Each kind of car achieves a certain fuel efficiency, and the manufacturer is required by law to
maintain a certain ‘‘fleet average’’ efficiency. The fleet average is computed by multiplying the
efficiency of each kind of car times the number of that car produced, and dividing by the total cars
produced. Extend your
AMPL model to contain a minimum fleet average efficiency constraint.
Rearrange the constraint as necessary to make it linear — no variables divided into other variables.