Professional Documents
Culture Documents
Lorenzo Lampariello
a.a. 2019-20
The Superwood Co. manufactures wooden products such as tables and chairs.
Because of declining earnings, top management has decided to develop a new
management policy aiming at
determining what the production (daily) quantities should be for the two
products in order to maximize their total profit, subject to the restrictions
imposed by the limited production capacities available in the plant.
Profit per unit produced was chosen as an appropriate measure after the mar-
keting division concluded that the incremental profit from each additional
unit produced would be roughly constant regardless of the total number of
units produced. As a consequence, the accounting department developed the
estimates reported in Table 1.
The manufacturing division, as detailed in Table 2, has made available the
data concerning hours of assembly and conditioning time available (per day)
for the products, as well as the number of hours (per day) of assembly and
conditioning time used for each unit produced of each product.
Department of Business Studies, University of RomaTre, Italy E-mail:
lorenzo.lampariello@uniroma3.it
2 Lorenzo Lampariello
In view of the problem definition above, one has to decide the number of units
of tables and chairs to be produced (daily) so as to maximize their total profit.
(i) Define the decision variables, i.e. unknown quantities to be controlled by
the decision-maker in order to achieve the objective. In this case, one can
naturally set
x1 = units of tables produced (daily)
x2 = units of chairs produced (daily)
(ii) Define the objective (function). As for this example, it is simply the total
profit, depending in turn on the units of tables and chairs produced
(daily):
f (x1 , x2 ) = 4x1 + 1x2
(iii) Identify the constraints, i.e. the restrictions imposed on the values of the
decision variables, due to the limited resources (assembly and condition-
ing hours) available. In particular, Table 2 indicates that 3 (daily) hours
of assembly are used to manufacture each table, and 2 (daily) hours of
conditioning are required to manufacture each chair. Hence, the number
of (daily) hours of assembly used to produce x1 units of tables and x2
units of chairs is 3x1 +2x2 . This amount of time, in turn, must not exceed
the total number of available assembly (daily) hours, that is 12. Similarly,
the number of (daily) hours of conditioning used to produce x1 units of
tables and x2 units of chairs is 0, 5x1 + 1x2 . But only 4 (daily) hours of
conditioning are available and this limit must be taken into account. In
summary, the resources limitations constrain the feasible values for the
production quantities x1 and x2 according to the following relations:
g1 (x1 , x2 ) = 3x1 + 2x2 ≤ 12
g2 (x1 , x2 ) = 0, 5x1 + 1x2 ≤ 4
Of course, we also have the so-called logical constraints, such as:
x1 ≥ 0
x2 ≥ 0
Mathematics of Decision Making 3
feasibility i.e. the problem of finding feasible values for x1 and x2 , that is
the values (if any) of the production quantities that comply with the con-
straints. Actually, this is the problem introduced by subject to (s.t.) in
(1);
optimality i.e. the problem of picking out (if any), among all the feasible values
for x1 and x2 , the ones that maximize the objective.
Small problems with only two decision variables can be solved by means of
a simple graphical procedure. First, one has to construct a two-dimensional
graph with x1 and x2 as the axes: the horizontal axis shows the range of values
for x1 , while the vertical axis the range of values for x2 . Then, recalling that
actually we are facing two problems (feasibility and optimality), follow these
steps:
(I) (feasibility) Identify the feasible values of x1 and x2 , i.e. the values that
are permitted by the constraints (see point (iii) in Section 1.2). This is
done by drawing each line that borders the range of permissible values
for each restriction (see Figure 1). To begin, note that the nonnegativity
restrictions x1 ≥ 0 and x2 ≥ 0 require x1 and x2 to lie on the positive
side of the axes, i.e., in the first quadrant. The constraint, 3x1 +2x2 ≤ 12,
requires plotting the values of x1 and x2 such that 3x1 + 2x2 = 12
(a line) to complete the boundary; the values of x1 and x2 such that
3x1 + 2x2 ≤ 12 are those that lie either underneath or on the line
3x1 + 2x2 = 12, so this is the limiting line above which the values of
x1 and x2 do not satisfy the inequality. An analogous reasoning applies
to the constraint 0, 5x1 + 1x2 ≤ 4. Finally, considering altogether the
zones individuated above, i.e. intersecting them, one gets the so-called
feasible region (see Figure 2), that is the area which the values of x1
and x2 must belong to in order to comply with problem’s constraints.
(II) (optimality) Draw the (contour lines of the) objective function (see point
(ii) in Section 1.2). Remember that the aim is to pick out the values of
x1 and x2 in the feasible region that maximize the value of the objec-
tive function f . One can follow a trial procedure, see Figure 3. Set, for
example, a value equal to 0. Then, recalling that the objective function
f (x1 , x2 ) = 4x1 + x2 , drawing the line 4x1 + x2 = 0 simply corresponds
to identifying all the values of x1 and x2 that yield a corresponding
value of the objective function f as large as 0. Even more, one can see
that there is a single point on this line that also lies within the feasible
region, specifically x1 = 0 and x2 = 0. Having gained perspective by
trying this arbitrarily chosen value of 0, one should next try a larger
(we are maximizing!) arbitrary value for f , say 4, and draw the line
4x1 + x2 = 4: this corresponds to identifying all the values of x1 and x2
that yield a corresponding value of the objective function f as large as
4. Observe also that there are plenty of points on this line that lie within
the feasible region, so that the maximum permissible value for f must
be at least 4. Hence, try further the value 18.5: can one obtain such
value for the objective, given the problem’s constraints? The answer is
clearly no. Now notice in Figure 3 that the lines constructed are parallel.
This is no coincidence, since any such line has the form 4x1 + x2 = k
Mathematics of Decision Making 5
x2 x2
20 20
x1 x1
−8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8
−20 −20
x2 x2
3x1 + 2x2 = 12 0.5x1 + x2 = 4
20 20
x1 x1
−8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8
−20 −20
x2
20
x1
−8 −6 −4 −2 2 4 6 8
−20
x2
20
x1
−8 −6 −4 −2 2 4 6 8
4x1 + x2 = 0
4x1 + x2 = 4
4x1 + x2 = 11 −20
4x1 + x2 = 16
4x1 + x2 = 18.5
for the chosen value of k (0, 4, or 18.5 for the analysis above), and, in
turn,
x2 = k − 4x1 ,
which shows that, independent from k, the slope of the line is 4, whereas
the intercept of the line with the x1 axis is equal to k. Moreover, com-
paring the lines in Figure 3, it is clear that the line giving a larger
value of k is farther up and away from the origin (note also that the
intercept with the x1 axis increases when the value chosen for f , i.e.
k, is increased). In view of these considerations, in the end one has to
draw a family of parallel lines containing at least one point in the fea-
sible region and selecting the line that corresponds to the largest value
k of the objective f . Figure 3 shows that this line passes through the
point x1 = 4, x2 = 0, which is the optimal solution. The equation
4x1 + x2 = 4 ∗ 4 + 1 ∗ 0 = 16 of this line indicates that the optimal value
for f is k = 16. The point x1 = 4, x2 = 0 lies at the intersection of the
two lines x2 = 0 and 3x1 + 2x2 = 12, so that it can be calculated as the
simultaneous solution of these two equations.
Summing up, construct a single line with a ruler to establish the slope.
Then, when maximizing, move the ruler with fixed slope through the
feasible region in the direction of improving k. Stop moving the ruler at
the last instant that it still passes through a point in this region. This
point is the desired optimum.
Once data are reported onto a spreadsheet, follow the same steps as in Section
1.2. (i) The decision variables, i.e. (daily) production quantities of tables and
chairs (x1 and x2 ), are placed in cells C15 and D15 to locate them in the
columns for these products just under the data cells. Since we don’t know yet
what these quantities should be, they are just entered as ones at this point.
Later, these numbers will be changed while seeking the optimal production
mix.
(ii) The objective, i.e. the total (daily) profit from the two products, is
entered in cell G4: it is the sum of products
G12 = SUMPRODUCT(C4:D4, C15:D15).
The total profit (G12) is an output cell depending on the changing cells C15
and D15: it has to be made as large as possible when choosing the production
quantities.
(iii) As for the constraints, the total number of hours of assembly and
conditioning time used per day for the production of tables and chair is entered
in cells E9 and E10, just to the right of the corresponding data cells. The Excel
equations for these cells are
E9 = SUMPRODUCT(C9:D9, C15:D15)
E10 = SUMPRODUCT(C10:D10, C15:D15).
Finally, ≤ signs are entered only as reminders in cells E9, E10 to indicate that
each total value to their left cannot be allowed to exceed the corresponding
number in column G. The nonnegativity constraints (x1 ≥ 0, x2 ≥ 0) could
be added in a later stage of the implementation.
To practically find a solution of the problem at hand, once the model has
been correctly reported onto the spreadsheet, one has to resort to the Excel
8 Lorenzo Lampariello
built-in Solver. To install the Solver, click the Office Button, choose Excel
Options, then click on Add-Ins on the left side of the window, select Manage
Excel Add-Ins at the bottom of the window, and then press the Go button.
Make sure Solver is selected in the Add-Ins dialog box, and then it should
appear on the Data tab. For Excel 2011 (for the Mac), choose Add-Ins from
the Tools menu and make sure that Solver is selected. To provide the Solver
with a starting point, an arbitrary trial solution has been entered in Figure 4
by placing ones in the changing (variables) cells. Solver will then change these
to the optimal values after solving the problem. This procedure is started by
clicking on the Solver button on the Data tab and by filling in the dialog box
(see Figure 5): the Solver clearly needs to know where each aspect of the model
is located on the spreadsheet. Once all the fields in the dialog box are filled in,
the Solver will indicate the outcome. Typically, it will indicate that it has found
an optimal point. If the model has no feasible points or no optimal points, the
dialog box will state that “Solver could not find a feasible solution” or that
“The Objective Cell values do not converge”. The dialog box also presents the
option of generating various reports. After solving the model, Solver replaces
the original numbers in the changing cells with the optimal numbers, as shown
in Figure 6.
E Solve all the problems in Section 1.2.
Mathematics of Decision Making 9
activities
objective 1 2 ... n
contribution to obj. val. per unit of activity p1 p2 ... pn
activities
constraints 1 2 ... n resources availability
1 a11 a12 ··· a1n b1
resources
Model (2) can be equivalently written in the following more synthetic form:
n
X
maximize p j xj
xj , j=1,...,n
j=1
Xn
s.t. aij xj ≤ bi , i = 1, . . . , q
j=1
xj ≥ 0, j = 1, . . . , n,
which in turn, considering the vectors
p1 b1 x1
p2 b2 x2
p , . ∈ Rn , b , . ∈ Rq , x , . ∈ Rn
.. .. ..
pn bq xn
Mathematics of Decision Making 11
maximize pT x
x
s.t. Ax ≤ b (3)
x ≥ 0,
where
n
X
pT x , p1 x1 + p2 x2 + · · · + pn cn = cj xj
j=1
T
a11 a12 ··· a1n x1 a1 x
a21 a22 ··· a2n x2 aT2 x
Ax = . .. .. , ..
.. ..
.. . . . . .
aq1 aq2 · · · aqn xn aTm x
Pn
a1j xj
a11 x1 + a12 x2 + · · · + a1n xn Pj=1
a21 x1 + a22 x2 + · · · + a2n xn nj=1 a2j xj
= =
.. ..
.
Pn .
aq1 x1 + aq2 x2 + · · · + aqn xn j=1 aqj xj ,
maximize pT x
x
e ≤ eb, (4)
s.t. Ax
12 Lorenzo Lampariello
where
a11 a12 ··· a1n
b1
a21 a22 ··· a2n b2
.. .. ..
.. ..
.
. . .
.
aq1 aq2 · · · aqn
∈ Rq+n,n , eb , bq ∈ Rq+n .
A=
e
−1
0 ··· 0
0
0 −1 · · · 0
.
..
.
0 ..
0 0
0
0 0 ··· −1
The preceding model (in any of its equivalent versions) might happen not to
fit the natural form of other problems. For example, one could have to
• minimize rather than maximize the objective function;
• consider constraint functions gi s with a greater-or-equal-to inequality or
with an equality for some i ∈ {1, . . . , q};
• take into account decision variables xj , for some j ∈ {1, . . . , n} unrestricted
in sign.
The question arises if model (2) (or, equivalently, (3) or (4)) is sufficiently
general to encompass other cases of interest. The answer is yes: by simple
manipulations, cases as those described above can be reduced to the general
form (2) (or, equivalently, (3) or (4)). In fact, suffice it to observe that:
• minimizing fe is equivalent to maximizing f = −fe;
• any constraint of the type gei (x) ≥ ebi is equivalent to gi (x) ≤ bi , where
gi = −egi and bi = −ebi ; an equality constraint gei (x) = ebi can be recast as
the couple of inequality constraints
gi (x) ≤ bi
gi+1 (x) ≤ bi+1
The underlying assumption of model (2) is that the objective and the con-
straints must be linear.
maximize f (x)
x
(5)
s.t. gi (x) ≤ bi , i = 1, . . . , m
S , {x ∈ Rn : gi (x) ≤ bi , i = 1, . . . , m}.
14 Lorenzo Lampariello
1
minimize 7x1 + 45 minimize 10 maximize 27 x1
x1 x1 x1
s.t. x1 ≥ 10−6 s.t. x1 ≥ 2
3 s.t. x1 ≥ −1000
x1 ≤ 0
minimize −(1/3) x1 + x2
minimize x1 + x2 x1 , x2
x1 , x2
s.t. −x1 + x2 + 1 ≤ 0
s.t. x1 ≥ 0
x2 ≤ 0
x2 ≥ 0
x1 + x2 + 3 ≥ 0
−2x1 + x2 + 8 ≥ 0
(x1 = x2 = 0)
(x1 = 5/3, x2 = −14/3)
maximize x1 − x2
x1 , x 2
s.t. x2 ≤ x1
x1 ≤ 5
x2 ≥ 0
(x1 = 5, x2 = 0)
16 Lorenzo Lampariello
E Why can we consider the linear problem form (6) without loss of generality?
whose unique solution is easily seen to be the point P1 = (6, 24), which in
turn is feasible. Hence, P1 is a vertex.
18 Lorenzo Lampariello
• Then, consider the first and the third constraints: the corresponding system
is
3x1 − 2x2 = −30
x1 = 0
whose unique solution is P2 = (0, 15), which in turn is not feasible (in
particular, it does not satisfy the second constraint).
• And so on...
In summary, one has to compute two by two (since n = 2) the possible inter-
sections of the m = 4 constraints lines −3x1 + 2x2 = 30, −2x1 + x2 = 12, x1 =
0, x2 = 0, and verify if the computed solutions (if any) are unique and feasible.
E Verify if the points P1 = (0, 0, 0), P2 = (0, 0, 1/2), P3 = (0, 0, 1) are ver-
tices of {(x1 , x2 , x3 ) ∈ R3 : x1 +2x2 +2x3 ≤ 2, x1 +4x2 +2x3 ≤ 3, x1 , x2 , x3 ≥
0}. (P1 and P3 are vertices)
It is actually because of the very nature of the feasible set (as well as of the
objective function) that the so-called fundamental theorem of linear program-
ming holds.
Theorem 2 (Fundamental Theorem of Linear Programming) For a
linear programming problem, one and only one of the following alternatives
holds:
Mathematics of Decision Making 19
Fig. 7: Path followed and vertices examined by the simplex method for the
Superwood Co. problem
x2 x2
20 20
x1 x1
−8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8
−20 −20
20 20
x1 x1
−8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8
−20 −20
(c) Iteration 1: the answer is yes. Move to a (d) Again, moving from the current point to
better adjacent vertex an adjacent vertex, can one obtain a better
value for the objective?
x2 x2
20 20
x1 x1
−8 −6 −4 −2 2 4 6 8 −8 −6 −4 −2 2 4 6 8
−20 −20
(e) Iteration 2: the answer is yes. Move to a (f) Again, moving from the current point to
better adjacent vertex an adjacent vertex, can one obtain a better
value for the objective?
x2
20
x1
−8 −6 −4 −2 2 4 6 8
−20
3.4 Duality
E Solve graphically and by means of the Excel solver the dual problem in (7).
(u1 = 43 , u2 = 0, obj. function optimal value = 16)
Suppose now that another company (from now on referred as the dual com-
pany) wants to take over the Superwood Co. (from now on referred as the
primal company). So, let the nonnegative quantities u1 , u2 be the unitary val-
ues accorded to the resources owned by the Superwood Co., i.e. assembly time
and conditioning time, respectively. While the aim of the primal company is
to maximize the profit as given by 4x1 + 1x2 , the goal of the dual company
is to minimize the costs incurred to obtain from the primal company all the
available resources, i.e. 12u1 + 4u2 (recall that 12 and 4 hours are available
for assembly and conditioning, respectively). Of course, in order to finalize
the take-over, the amount to be obtained (by the primal company) by selling
the resources needed to manufacture a product unit must be not less than the
profit coming from the sale of the product unit itself. This is clearly reflected in
the dual constraints: see for example the inequality 3u1 + 0, 5u2 ≥ 4, recalling
that in order to manufacture a table, 3 and 0, 5 hours (per unit) of assem-
bly and conditioning time are needed, and the (unitary) profit is 4. Hence,
one gets the dual problem that consists in determining the unitary values to
be accorded to the resources so as to minimize the total cost incurred to re-
alize the take-over, with the constraint that the amount to be spent to get
22 Lorenzo Lampariello
the resources needed to manufacture a product unit, for every product, must
be not less than the profit coming from the sale of the product unit itself.
Primal and dual problems are two sides of the same coin: in the Superwood
Co. example, the primal is the problem of maximizing the profit (under some
production constraints) assuming the costs of the production resources to be
known quantities. On the other hand, the dual is the problem of establishing
the minimal value for which it is profitable to sell the business rather than
producing, assuming the production quantities to be known a priori.
(i) Separate primal constraints into two groups. First, identify the n sign
constraints, one for each primal decision variables: a sign constraint could
be only of three types, xj ≥ 0, xj ≤ 0 or xj unrestricted in sign. Note
that if nothing is specified about a decision variable, then that decision
variable must be intended to be unrestricted in sign.
All the remaining q constraints are the so-called functional (or generic)
constraints.
(ii) Focus on the primal functional constraints. Depending on the nature of
the primal problem (is it a maximization or a minimization problem?)
and on if a functional constraint is either a ≥, a ≤, or an = relation,
label it (as ‘direct’, ‘indirect’, or ‘equality’ constraint) according to the
following rules.
problem type ≤ ≥ =
maximize direct indirect equality
minimize indirect direct equality
(iii) Define the q dual decision variables with their sign constraints. For each
primal functional constraint, one has a corresponding dual decision vari-
able. The sign of each dual decision variable depends on the label of the
corresponding primal functional constraint. In particular, if a dual de-
cision variable comes from a direct primal function constraint, then it
must be ≥ 0; if it originates from an indirect primal function constraint,
then it must be ≤ 0; finally, if it has as its source an equality primal
function constraint, then it must be unrestricted in sign.
Mathematics of Decision Making 23
(iv) Define the nature of the dual problem. If the primal problem is to max-
imize, then the dual one is to minimize; if the primal problem is to
minimize, then the dual one is to maximize.
(v) Define the n dual functional constraints. Each dual functional constraint
is attached to a corresponding primal decision variable. More specifically,
if a dual functional constraint comes from a ≥ 0 primal decision variable,
then it must be direct; if it originates from a ≤ 0 primal decision vari-
able, then it must be indirect; finally, if it has as its source a primal
decision variable which is unrestricted in sign, then it must be an equal-
ity constraint. Suppose that a dual functional constraints is linked to the
primal decision variable xj : then, the coefficients in the expression in the
left-hand side of the dual functional constraint will be the coefficients
that appear multiplied times the primal decision variable xj in the pri-
mal functional constraints; the right-hand side (constant) quantity in the
dual functional constraint will be the coefficient that appears multiplied
times the primal decision variable xj in the primal objective function.
(vi) Define the dual objective function. The coefficients in the dual objec-
tive function are the right-hand side (constant) quantities in the primal
functional constraints.
constraint i: variable i:
functional
≤ direct ui ≥ 0
constr.
constr.
≥ indirect ui ≤ 0
= equality ui unr. in sign
variables, sign
variable j: constraint j:
functional
xj ≥ 0 ≥ direct
constr.
constr.
xj ≤ 0 ≤ indirect
xj unr. in sign = equality
Consider now without loss of generality the general form (3) of a linear pro-
gramming problem. In the light of the practical rules that one has to follow
to construct the dual problem, one gets the following compact version for the
primal-dual couple:
maximize pT x minimize bT u
x u
s.t. Ax ≤ b s.t. u≥0 (8)
x≥0 A u ≥ p.
T
So, in principle, rather than following the general rules (i)-(vi), one can always
reduce the problem at hand to the general form (see subsection 2.1) and get
readily the dual problem as indicated in (8).
E Construct the dual for the following problems:
maximize x1 + 2x2 + 3x3
x1 ,x2 ,x3 minimize 5x1 + x2 + x3 + x4
x1 ,x2 ,x3 ,x4
s.t. 4x1 + 5x2 + 6x3 ≤ 7
s.t. x1 + x2 + x5 ≥ 1
8x1 + 9x2 − 3x3 ≥ 10
x2 + x3 + x4 ≤ 1
11x1 − 2x2 + 12x3 = −3
x1 + x2 + x3 + x5 = 2
x1 ≥ 0, x2 ≤ 0
x1 ≥ 0, x2 ≥ 0, x5 ≥ 0
E Construct the dual for every linear programming problem that is contained
in these notes.
Here, referring without loss of generality to (8), the key links between the
primal and the dual problems are summarized. These results, along with the
economic interpretation, provide the motivation for the rules one has to follow
in order to construct the dual from a primal problem and help to understand
why the dual is the way it is.
The first property is referred to as “weak duality” and provides a bound
on the optimal value of the objective function of either the primal or the dual.
Simply stated, the value of the objective function for any feasible point to
the primal maximization problem is bounded from above by the value of the
objective function for any feasible point to its dual. Similarly, the value of
the objective function for its dual is bounded from below by the value of the
objective function of the primal.
Mathematics of Decision Making 25
pT x
e ≤ bT u
e. (9)
The following results are direct consequences of the weak duality property.
Corollary 1 follows from it since a dual feasible point provides an upper bound
on the optimal primal value and this bound is attained by the given primal
feasible point. As for Corollary 2, the claim is easily seen to hold since any fea-
sible point to the dual would provide an upper bound on the primal objective
function by the weak duality theorem; this contradicts the fact that the primal
problem is unbounded. The argument for the dual problem is analogous.
Corollary 2 If the primal (dual) problem is unbounded, then the dual (primal)
problem is infeasible.
It should be pointed out that it is not true that if the primal problem is
infeasible, then the dual problem is unbounded. In this case the dual problem
may be either unbounded or infeasible.
E In order to shed a light on the latter observation, construct and solve the
dual for the following two problems:
pT x = bT u. (10)
dual
optimal solutions unbounded infeasible
primal optimal solutions 3 7 7
unbounded 7 7 3
infeasible 7 3 3
E What if both the primal and the dual problem are known to be feasible?
3.4.3 Shadow prices and sensitivity analysis
i.e., if the value attributed to the ith resource (constraint) is strictly positive at
the optimal solution (ui > 0), then we should require that all of this resource
be consumed; also,
Xn
aij xj < bi ⇒ ui = 0,
j=1
i.e., the ith resource is not fully used, then its value should be zero (ui =
0). Hence, in a sense, dual variables can be viewed as shadow prices for the
corresponding resources, which are the values imputed to these resources at
the margin (see also the introductory remarks in this very section). Referring
again, e.g., to the Superwood Co. case in Section 1, and taking into account the
strong duality result, dual variables represent the resources’ values that would
allow the firm to break even, in the sense that its total contribution would
exactly equal the total value of its resources. However, the firm in fact owns
its resources, and so the shadow prices are interpreted as the breakeven rates
Mathematics of Decision Making 27
for getting additional capacity: with an eye to the Superwood Co. example,
they indicate, respectively, how much an additional hour of assembly time and
an additional hour of conditioning time are worth.
The above straightforward economic interpretation of duality opens the
door to sensitivity analysis issues: since there is always some uncertainty in
the data, the question arises naturally on what happens to the optimal value of
the objective function (e.g. the optimal profit in the Superwood Co. case) when
the right-hand side value for a particular constraint (i.e., the corresponding
resource availability) varies. Further, the sensitivity of the optimal value to
changes in the data gives insight into possible technological improvements in
the process being modeled: it could be essential, rather than computing the
optimal solution of a problem, to investigate what additional resources should
be acquired to achieve more efficient results.
More specifically, varying the availability for a particular resource alters
the optimal value of the objective function in a way that allows one to impute
a per-unit value, or shadow price, to that very resource. In turn, such shadow
prices do not change even though some of the resource availabilities are varied:
hence, it is useful to know over what range and under what conditions the
components of a particular (dual) optimal solution, i.e. the shadow prices,
remain unchanged.
In order to have an insight on this matter, consider again the Superwood
Co. case primal-dual couple (7). Recall that the optimal value of both the
primal and the dual problems is 16. Focus now on the first resource, namely
(daily) assembly time hours. What if we modify the corresponding resource
availability? What happens, as a consequence, to the optimal value we can
attain for both problems? And, finally, what about the shadow prices, i.e., the
components of the dual optimal point?
E Why is it not interesting to increase the (daily) number of conditioning time
hours?
Passing from 12 (the original second resource availability) to 12 + δ1 , we get
the following modified primal-dual couple:
30
u2
20
10
u1
−4 −2 2 4 6 8
δ1 = 0 → 12u1 + 4u2 = 0
δ1 = 1 → (12 + 1)u1 + 4u2 = 0
δ1 = 12 → (12 + 12)u1 + 4u2−10
= 0
δ1 = 48 → (12 + 48)u1 + 4u2 = 0
Fig. 8: Graphical solution for the Superwood Co. case dual: zero-level objective
contour lines for different positive values of δ1 are depicted
30
u2
20
10
u1
−4 −2 2 4 6 8
δ1 = 0 → 12u1 + 4u2 = 0
δ1 = −1 → (12 − 1)u1 + 4u2 = 0
δ1 = −12 → (12 − 12)u1 + 4u−10
2 = 0
δ1 = −48 → (12 − 48)u1 + 4u2 = 0
Fig. 9: Graphical solution for the Superwood Co. case dual: zero-level objective
contour lines for different negative values of δ1 are depicted
the marginal value, or shadow price, for the corresponding resource, that is
assembly hours.
For the sake of completeness, it is worth remarking that when δ1 > 12,
the optimal point moves to (0, 8), while whenever δ1 < −12, then the dual
problem turns out to be unbounded.
E In the latter case, what is the outcome of the corresponding primal problem?
Of course, every resource availability, that is the right-hand side for every
constraint, can be analyzed this way.
E What about the analysis concerning a modification δ2 for the second resource
availability (see Figures 10 and 11)?
30
u2
20
10
u1
−4 −2 2 4 6 8
δ2 = 0 → 12u1 + 4u2 = 0
δ2 = 1 → 12u1 + (4 + 1)u2 −10
= 0
δ2 = 44 → 12u1 + (4 + 48)u2 = 0
Fig. 10: Graphical solution for the Superwood Co. case dual: zero-level objec-
tive contour lines for different positive values of δ2 are depicted
30
u2
20
10
u1
−4 −2 2 4 6 8
δ2 = 0 → 12u1 + 4u2 = 0
δ2 = −1 → 12u1 + (4 − 1)u2 = 0
δ2 = −2 → 12u1 + (4 − 2)u2−10
= 0
δ2 = −6 → 12u1 + (4 − 6)u2 = 0
Fig. 11: Graphical solution for the Superwood Co. case dual: zero-level objec-
tive contour lines for different negative values of δ2 are depicted
30 Lorenzo Lampariello
Summarizing, the shadow prices are associated with the constraints: they are
in fact the marginal worth of an additional unit of a particular resource avail-
ability (i.e. the right-hand side value for that constraint).
It is not difficult to show that if an optimal point of the linear relaxation (14)
has integer components, then it is also optimal for the ILP (13).
Proposition 1 Let the ILP (13) and the corresponding linear relaxation (14)
be given and assume the linear relaxation (14) to have an optimal point x with
integer components. Then, x is an optimal point also for the ILP (14).
Mathematics of Decision Making 31
x2
x1
−8 −6 −4 −2 2 4 6 8
4x1 + x2 = 0
−5
4x1 + x2 = 4
4x1 + x2 = 11
4x1 + x2 = 16
Fig. 12: The Superwood Co. problem (16) with integrality constraints: the
feasible region is composed only by the points that are highlighted in black
(i.e. the ones with integer components and such that the linear constraints are
satisfied)
Focus again on the Superwood Co. case (see Figure 3): the unique optimal
point for the linear problem (1), that is (x1 = 4, x2 = 0), has integer com-
ponents. Hence, in the light of Proposition 1, (x1 = 4, x2 = 0) is an optimal
point also for the following ILP, see Figure 12:
maximize 4x1 + 1x2
x1 ,x2
s.t. 3x1 + 2x2 ≤ 12
0, 5x1 + 1x2 ≤ 4
(15)
x1 ≥ 0
x2 ≥ 0
x1 , x2 ∈ Z,
which should be the proper mathematical model for the Superwood Co. real-
world problem. Observe further that, in this case, not only the optimal point
but also each vertex of the feasible set of the linear problem (1) has integer
components. Thus, as for this specific example, solving the “simple” linear
problem (without the explicit requirement of integrality for the decision vari-
ables) (1) by e.g. the simplex method is exactly the same as solving the ILP
counterpart (with the explicit constraints for x1 and x2 to be integer) (16).
Without imposing it, we obtain the integrality requirement (for the optimal
values of the decision variables) as a consequence of the very nature of the
“simple” linear problem’s feasible set.
Clearly, in general, things are more complicated: think, e.g., about the
modified Superwood Co. example (see page 3 in these notes): in that case, if
32 Lorenzo Lampariello
6
x2
x1
−6 −4 −2 2 4 6
−2
3x1 + x2 = 0
3x1 + x2 = 4.5 −4
3x1 + x2 = 9
3x1 + x2 = 59
6
−6
one addresses the “simple” linear problem, the integrality of the optimal point
components does not come as a consequence. It has, rather, to be imposed as
an a priori condition, that is as additional constraints in the mathematical
model.
One could be led to think that, in order to compute a solution of any ILP,
suffice it, ignoring the integrality requirement, to solve the corresponding linear
relaxation and, then, possibly to round the computed non integer solution. In
general, unfortunately, this is not the case.
E Solve graphically the following ILP and the corresponding linear relaxation
(see Figure 13, (x1 = 3, x2 = 0), while, as for the linear relaxation, (x1 =
7 17
3 , x2 = 6 )):
maximize 3x1 + x2
x1 ,x2
s.t. 7x1 + 2x2 ≤ 22
−2x1 + 2x2 ≤ 1
(16)
x1 ≥ 0
x2 ≥ 0
x1 , x2 ∈ Z.
On the positive side, if the ILP at hand is such that its corresponding linear
relaxation provides one with an optimal point that has integer components,
then an optimal solution can be computed by addressing, rather than the “dif-
ficult” original ILP, its linear relaxation. More precisely, if all the vertices of
the feasible set for a solvable linear relaxation of an ILP have integer com-
ponents, computing a solution of the original ILP is the same as solving the
corresponding linear relaxation by e.g. the simplex method: in the end, an
Mathematics of Decision Making 33
optimal point with integer components is provided that is optimal also for the
original ILP thanks to Proposition 1. In particular, there exist classes of ILPs
for which this property can be shown to hold in general: for example, this is
the case for assignment problems, indeed.
On the negative side, more in general, as the example above clearly shows,
solving the linear relaxation normally ends up in a non integer optimal point;
rounding (down or up) the computed non integer solution might, in turn,
provide with a point that could be far away from the actual solution of the
ILP, or, even worse, infeasible (see also the exercise at page vi)! Thus, in
general one cannot rely on the linear relaxation in order to solve an ILP and
specific algorithms for integer programming (such as, e.g., branch & bound, or
cutting planes methods), whose description is out of the scope of this course,
must be called for.
Mathematics of Decision Making i
E The Divided Colors Co. produces two colorants, C1 and C2, using three
kinds of powders, P1, P2 and P3. Profits entailed by producing and selling C1
and C2 are detailed next:
E (Capital budgeting) The Pecunia Co. plans a ¤1 million investment for the
next three years. In particular, two investment plans, which guarantee (for
every ¤ that has been spent) the income flows reported in Table 12, have
been identified. To avoid liquidity problems, the company has decided that
plan A plan B
year 1 0.2 0.4
year 2 0.4 0.4
year 3 0.9 0.6
the revenues cannot be reinvested, and that, at the end of the first and of
the second year, the available cash must be at least ¤300000 and ¤400000,
respectively.
Taking into account the company’s liquidity constraints, the aim is to deter-
mine how much of the investment has to be allocated to each plan so as to
obtain the maximum net present value of the revenues, given a discount rate
of 0.005 . (investment on A = 500000 ¤, investment on B = 500000 ¤, revenues
NPV = 1433398,833 ¤)
• Construct a linear programming model for this problem.
• Use Excel to solve this model.
E (Transportation problem) The Clean Water Co. ships water by truck from
three plants (located at Bellingham, Washington; Eugene, Oregon; and Albert
Lea, Minnesota) to four bottling sites (Sacramento, California; Salt Lake City,
Utah; Rapid City, South Dakota; and Albuquerque, New Mexico). Because the
shipping costs are a major expense, management is initiating a study to reduce
them as much as possible. Hence, an estimate has been made of the output
from each plant, and each bottling site has been allocated a certain amount
from the total supply of water. This information (in units of truckloads), along
with the shipping cost per truckload for each plant-bottling site combination,
is given in Table 13.
The problem now is to determine which plan for assigning these shipments to
the various plant-bottling site combinations would minimize the total shipping
cost. (total shipping cost = 152535 $)
E The Rainbow Co. produces acrylic paints mixing the products V1, V2, V3
and V4. Each product contains substances S1, S2 and S3 in the proportions
Mathematics of Decision Making iii
given in Table 14, where also the minimal proportions of S1, S2, S3 that are
required for each paint can are reported.
constraints V1 V2 V3 V4 requirements
S1 0.10 0.12 0.16 0.28 0.26
S2 0.05 0.15 0.25 0.30 0.20
S3 0.12 0.20 0.25 0.22 0.22
For every paint can, production costs of V1, V2, V3 and V4 are
objective V1 V2 V3 V4
cost [¤] 6 4 8 9
costs [$]
site 1 site 2 site 3 site 4
M1 13 16 12 11
M2 15 - 13 20
M3 5 7 10 6
M4 0 0 0 0
E The Health Department plans the blood transport. Blood bags must be
transported from four collection centers to three hospitals. The shipping dis-
tances and costs in Euros per Kilometer (per blood bag) for each center-
hospital combination, are given in Table 19.
The problem now is to determine which plan for assigning these shipments
to the various center-hospital combinations would minimize the total shipping
cost. (total shipping cost = 152535 $)
E Consider the following securities: Banca Popolare di Milano, Eni, Luxottica,
Gruppo l’Espresso. Given the monthly returns time series of assets belonging
to S&P (1/2004-11/2006) provided in the attached table,
vi Lorenzo Lampariello
determine the shares to be invested in the 6 securities that have been considered
so as to achieve an expected value for the PTF return equal to 0.018 and to
minimize the risk (as measured by the variance of the PTF return). (x1 = 0,
x2 = 0.45, x3 = 0, x4 = 0.29, x5 = 0.03, x6 = 0.23, Var(RP ) = 0.000489)
E Ten different investment plans are available, whose corresponding cash flow
at time t1 is reported below. Given the problem data, suppose that each plan
can be activated only once and must be paid just at the beginning of the
investment period (no leverage allowed).
Choose the investment plans to activate in order to get as much money as
possible. (xD , xG , xH , xI = 1, revenues= 166 ¤)
INVESTMENTS
YOU PAY
YOU GET
YOUR CHOICE
E New stringent air quality standards require that a company producing steel
reduces its annual emission of particulate matter, sulfur oxides, and hydrocar-
bons by the amounts shown in Table 21. The most effective types of abatement
methods are: increasing the height of the smokestacks, using filter devices in
the smokestacks, and including cleaner materials among the fuels for the fur-
naces. Each of these methods has a technological limit on how heavily it can
be used (e.g., a maximum feasible increase in the height of the smokestacks).
Total annual cost estimates (in millions of dollars) for using the methods
at their full abatement capacities are given in the following table.
height incr. [%] filter use [%] clean mater. use [%]
objective BF OF BF OF BF OF
cost [$/%] 8 10 7 6 11 9
Mathematics of Decision Making vii
The next table shows how much emission (in millions of pounds per year) can
be eliminated from each type of furnace by fully using any abatement method
to its technological limit. But each method also can be used less fully to achieve
any fraction of the emission-rate reductions shown in the table. Furthermore,
the fractions can be different for blast furnaces and for open-hearth furnaces.
The aim is to elaborate a plan specifying which types of abatement methods will
be used and at what fractions of their abatement capacities (for blast furnaces
and open-hearth furnaces) to satisfy the requirements with the smallest possible
cost.
• Construct a linear programming model for this problem.
• Use Excel to solve this model.