Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
v v
max/min
v f ( x ) subject to C( x )
x
v
where f ( x ) = f (x1,K x n )
is a quadratic function f : R n → R and
v
C( x ) = c1 (x1,K x n ) ∧K∧ c k (x1,K, x n )
is a conjunction of linear constraints c i of forms
f i (x1,K, x n ) ≤ k i and
f i (x1,K, x n ) = k i and
f i (x1,K, x n ) ≥ k i
Wolfe’s Method
Wolfe’s method is an extended simplex procedure, which can be
applied to QPP in which all problem variables are non-negative.
•slack (excess) for the i-th constraint and λi cannot both be positive.
(follows from the geometric K-T interpretation)
The first complementary slack condition secures the second K-T condition
•slack (excess) for the i-th constraint and λi cannot both be positive.
v
∀i : λ (b − g ( x )) = 0
i i i
The second complementary slack condition secures the third K-T condition
3. Add artificial variables for any equation that does not have an
obvious basic variable.
•Never pivot such that the excess ei from the i-th constraint and xi
both become basic (this could make both of them positive)
•Never pivot such that the slack/excess for the i-th constraint and λi
both become basic (this could make both of them positive)
QPP Example
minimize z = −x − x + 1 2 x + x − x x
1 2
2
1
2
2 1 2
x +x ≤3
1 2
subject to −2x − 3x ≤ −6
1 2
x ,x ≥ 0 1 2
rewrite to
x1 −1− x 2 + λ1 − 2 λ2 − e1 = 0 (main K - T cond. for x1 )
2x 2 −1− x1 + λ1 − 3λ2 − e2 = 0 (main K - T cond. for x2 )
x1 + x 2 + s1′ = 3 (original g1 with slack)
2x1 + 3x 2 − e′2 = 6 (original g 2 with excess)
x − x + λ − 2λ − e + a = 1
1 2 1 2 2 1
−x + 2 x + λ − 3λ − e + a = 1
1 2 1 2 2 2
subject to
x + x + s′ = 3 1 2 1
2 x + 3x − e ′ + a ′ = 6
1 2 2 2
objective x x λ 1 2 1
λ e e s′ e′
2 1 2 1 2
a
1
a
2
a ′ rhs
2
1 2 4 2 −5 −1 −1 0 −1 0 0 0 8
0 1 −1 1 −2 −1 0 0 0 1 0 0 1
0 −1 2 1 −3 0 −1 0 0 0 1 0 1
0 1 1 0 0 0 0 1 0 0 0 0 3
0 2 3 0 0 0 0 0 −1 0 0 1 6
QPP Tableau (II)
The first pivot (x2 enters the basis) is a standard pivot
obj. x1
x
2
λ1
λ 2
e e1
s′ e′
2 1 2
a1
a 2
a ′ rhs
2
1 4 0 0 1 −1 1 0 −1 0 −2 0 6
0 12 0 3 2 − 7 2 −1 −1 2 0 0 1 12 0 32
0 −1 2 1 1 2 − 3 2 0 −1 2 0 0 0 12 0 12
0 32 0 −1 2 3 2 0 12 1 0 0 −1 2 0 52
0 72 0 −3 2 9 2 0 3 2 0 −1 0 −3 2 1 92
QPP Tableau (III)
The second pivot (x1 enters the basis) is also a standard pivot
obj. x1
x 2
λ
1
λ 2
e 1
e 2
s′
1
e′
2
a 1
a
2
a′2
rhs
1 0 0 12 7 − 29 7 −1 − 5 7 0 17 0 −2 7 −8 7 6 7
0 0 0 12 7 − 29 7 −1 − 5 7 0 17 1 5 7 −1 7 6 7
0 0 1 2 7 −6 7 0 −2 7 0 −1 7 0 27 17 87
0 0 0 17 −3 7 0 −1 7 1 37 0 1 7 −3 7 4 7
0 1 0 −3 7 97 0 37 0 −2 7 0 −3 7 27 97
obj. x 1
x
2
λ 1
λ e
2 1
e 2
s ′ e′ a
1 2 1
a 2
a′ rhs
2
1 0 0 53 −4 −1 − 2 3 −1 3 0 0 −1 3 −1 2 3
0 0 0 53 −4 −1 − 2 3 −1 3 0 1 23 0 23
0 0 1 13 −1 0 −1 3 1 3 0 0 13 0 43
0 0 0 13 −1 0 −1 3 7 3 1 0 1 3 −1 4 3
0 1 0 −1 3 1 0 13 23 0 0 −1 3 0 53
obj. x
1
x
2
λ
1
λ
2
e
1
e
2
s′
1
e′
2
a 1
a 2
a′
2
rhs
1 0 0 0 0 0 0 0 0 −1 −1 −1 0
0 0 0 1 −12 5 − 3 5 − 2 5 −1 5 0 35 25 0 25
0 0 1 0 −1 5 1 5 −1 5 2 5 0 −1 5 15 0 65
0 0 0 0 −1 5 1 5 −1 5 12 5 1 −1 5 15 −1 65
0 1 0 0 15 −1 5 1 5 35 0 15 −1 5 0 95
Summary
In this section we have looked at
•Quadratic Programming
•Wolfe’s extended Simplex Method