Hint and Sample Question For CW1 Q1
Hint and Sample Question For CW1 Q1
Schedule Problem
The profit on type C1 circuits is £5 and that on type C2 circuits is £12. How many of each circuit
should be produced in order to maximise the profit?
You will not actually solve this problem yet, but show how it can be formulated using a
mathematical model. There are three vital stages in the formulation, namely,
Sample Solution:
A tabular form as shown in Table 1 is usually useful for setting up a mathematical model for a
production schedule problem.
Table 1
Elements Types of circuits Stock capacity
C1 C2
Resistors 20 10 200
Transistors 10 20 120
Capacitors 10 30 150
Benefit £5 from producing each C1 £12 from producing each C2
Transistors: Similarly,
Capacitors: Similarly,
Nonnegative constraints: We must state the obvious (but nevertheless important) inequalities:
x ≥ 0, y ≥ 0.
Since each type C1 gives £5 profit and each type C2 gives £12 profit, the total profit is then
P = 5x +12y
maximise P = 5x +12y
subject to 20x + 10y ≤ 200
10x + 20y ≤ 120
10x + 30y ≤ 150
x≥0
y ≥ 0.
Part 2: An Extension
(d) Draw a graph to show the region determined by all the constraints. Such a region is called feasible
region of the optimization problem.
(e) Prove, by applying the definition of convex set, that the region determined by all the constraints in the
optimization problem is a convex set.
Sample Solution
(d)
The feasible region is shown in figure 1.
20
Figure 1 Feasible region determined by the constraints for production schedule problem.
(e)
Let
20 10 200
x
A 10 20 , b 120 , and z
y
10 30 150
Using the above result, we can know that the area (region) formed by the following
constraints is a convex set:
Az ≤ b (1.1)
Note that the region defined by (1.1) is open (not closed or bounded). For convenience of
description, the symbol x used in the question was replaced by z. This is allowable.
Sample Solution #2 for (e)
An alternative approach to prove the area (region) formed by the following constraints is a convex
set:
Az b
(1.2)
z 0
Let P1 = [x1, y1]T and P2 = [x2, y2]T be two arbitrary points in S, and [0,1] . From the definition
of S, we have
20 x1 10 y1 200 2 x1 y1 20
10 x 20 y 120 x 2 y 12
1 1
1 1
(P1 is in S) (1.3)
10 x1 30 y1 150 x1 3 y1 15
x1 0, y1 0 x1 0, y1 0
20 x2 10 y2 200 2 x2 y2 20
10 x 20 y 120 x 2 y 12
2 2
2 2
(P2 is in S) (1.4)
10 x2 30 y2 150 x2 3 y2 15
x2 0, y2 0 x2 0, y2 0
Now, consider the new point P3 = λP1 + (1– λ)P2 =[ x3, y3]T. Writing it out in vector format, we
have,
x x x (1 ) x2 x3
P3 P1 (1 ) P2 1 (1 ) 2 1 (1.5)
y1 y2 y1 (1 ) y2 y3
2 x3 y3 20
x 2 y 12
3 3
(1.6)
3x 3 y3 15
x3 0, y3 0
2 x3 y3 2[ x1 (1 ) x2 ] [ y1 (1 ) y2 ]
(2 x1 y1 ) (1 )(2 x2 y2 )
(1.7)
20 (1 ) 20
=20
That is,
2 x3 y3 20 (1.8)
Similarly,
x3 2 y3 12 (1.9)
x3 3 y3 15 (1.10)
Therefore, for any two points P1 = [x1, y1]T and P2 = [x2, y2]T , and [0,1] , the new point z = P3 =
λP1 + (1– λ)P2 =[ x3, y3]T possesses the following properties
Az b
(1.11)
z 0
In other words, the combination z = λP1 + (1– λ)P2 =[ x3, y3]T is still in S. Therefore, from the
definition of convex sets, the set S defined by the following constraints is convex: