L_Shaped_Method - User pages

advertisement

The University of Iowa

L-Shaped (Benders') Method page 1

Dennis Bricker, 2001

Dept of Industrial Engineering

D.L. Bricker

Consider the Two-stage stochastic LP with recourse :

Minimize cx

 k

K 

1 p Q k

  subject to x

X where, for example, the feasible set of first-stage decisions is defined by

X

 x

R n

: Ax

,

0

Here k indexes the finitely-many possible realizations of a random vector  , with p k

the probability of realization k.

The first-stage variables x are to be selected before  is observed.

L-Shaped (Benders') Method page 2 D.L. Bricker

Then the set of second-stage decision variables y k

are to be selected, after x has been selected and the k th realization of  is observed.

The cost of the second stage when scenario k occurs is

Q x k

Minimum

 k

: k

 h k

 k

,

0

That is, y is a recourse which must be chosen so as to satisfy some linear constraints in the least costly way.

Note that, in general,

 the coefficient matrices T and W,

 the right-hand-side vector h, and

 the second-stage cost vector q are all random.

L-Shaped (Benders') Method page 3 D.L. Bricker

We assume that recourse is complete, i.e., for any choice of x and realization  , the set

Y k

 

: k

 h k

 k

,

0

  

(This may require the introduction of artificial variables with large costs.)

The objective is to minimize the expected total costs of first and second stages.

D.L. Bricker L-Shaped (Benders') Method page 4

The deterministic equivalent LP is a large-scale problem which simultaneously selects

 the first-stage variables x and

 the second-stage variables y

for every realization k k

P: Find

Z

 minimum cx

 k

K 

1 p q y k subject to k

 k

 k

,

1, K ; x

X y k

1, K

This can be an extremely large LP, with

K  n

2

variables and K  m

2

constraints.

L-Shaped (Benders') Method page 5 D.L. Bricker

Benders' Decomposition

Benders' partitioning--known also in stochastic programming as the "L-Shaped Method" -- achieves separability of the second stage decisions, that is, a separate LP is solved for each of the K scenarios.

Benders' partitioning was introduced by J.F. Benders for solving mixed-integer LP problems, that is, LP problems where some of the variables are restricted to integers:

Benders, J. F. (1962). “Partitioning Procedures for

Solving MixedVariables Programming Problems.”

Numerische Mathematik 4 : 238-252.

L-Shaped (Benders') Method page 6 D.L. Bricker

The equivalent "L-Shaped Method" was later introduced independently by van Slyke & Wets for solving stochastic LP with

Recourse ( SLPwR ) problems:

Van Slyke, R. M. and R. J.-B. Wets (1969).

“L-Shaped linear programs with applications to optimal control and stochastic programming.”

SIAM Journal of Applied Mathematics 17 : 638-663.

L-Shaped (Benders') Method page 7 D.L. Bricker

In both cases, the central idea is to partition the variables into 2 sets

(MIP: integer and continuous variables) or

(SLPwR: 1 st stage & 2 nd stage variables) and to project the problem onto the first set of variables.

 MIP :

Minimize cx

( ) where V(x) = optimal value of continuous LP after integer variables x have been fixed.

 SLPwR :

  where Q(x) = minimal expected cost of second stage when first-stage variables x have been fixed.

L-Shaped (Benders') Method page 8 D.L. Bricker

Given a first-stage decision x

, define a function

0

Q k

 

equal to the optimum of the second stage for each scenario k  1, …K:

Q x k

   min q y k k subject to

Then

Wy k

 h k

T x k 0

   cx

0

 k k 

1 y

 k

0 p Q k

 

provides us with an upper bound on the optimal value Z.

D.L. Bricker L-Shaped (Benders') Method page 9

If, as before, we introduce the variables x

for each scenario k, k together with the nonanticipativity constraints , we obtain the second-stage problem for scenario k,

Minimize q y k k subject to

T x x k k k

 x y

0 k

0

Wy

 , k

 h k

, whose linear programming dual is the linear program

Maximize

 k

W

 q k h k k subject to:

T k k

 k

I

0

 x

0

 k

It is not necessary to introduce the variables x , but it is done in k anticipation of later defining a cross-decomposition algorithm, which is a hybrid of Benders' decomposition and Lagrangian relaxation.

L-Shaped (Benders') Method page 10 D.L. Bricker

We can eliminate

Q k

  

 (the dual variables for the constraint k by using the equality constraint to obtain

Max

 h k

T x k 0

  k

 k

  

T k k

and subject to

 k

W

 q k x k

 x

0

)

The original problem now reduces to

 k

K 

1 p Q k

 

Z

Minimize x

0

X cx

0

D.L. Bricker L-Shaped (Benders') Method page 11

Denote by   k

 k

: W

T

 k

 q k

the polyhedral feasible region of the second-stage problem for scenario k.

Denote by  i k

the i th extreme point of  , i = 1, 2, …I k k

.

By enumerating the large (but finite ) number of extreme points of

 , we can write k

Q k

   i max

1,...

I k

 i k

 h k

T x k 0

 i max

1,...

I k

 i k x

0

  i k

 where  k i    i k

T k

and  i k

  i k h k

.

(Note that this demonstrates that

Q k

 

0

is a piecewise  linear convex function.)

L-Shaped (Benders') Method page 12 D.L. Bricker

Benders' (Complete) Master Problem then uses this representation of

Q k

 

0

to provide an alternate method for evaluating Z, namely

Z

Min cx

0

 k

K 

1 p k

 k subject to x

0

X

, and

 k

  i k x

0

  i k

, i=1, ...I; k=1, ...K

While it is possible in principle to solve the problem using

Benders' Complete Master Problem , in practice the magnitude of the number of dual extreme points makes it prohibitively expensive.

L-Shaped (Benders') Method page 13 D.L. Bricker

However, if a subset of the dual extreme points of  are k available, e.g.,  i k

, i

1, M k

where M k

 I k

, then we obtain an

underestimate of

Q k

 

, which we denote by

Q k

   max i=1, M k

 i k x

0

  i k

Thus, by making use of dual information obtained after M evaluations of

Q k

 

, we obtain a Partial Master Problem ,

M

= Min cx

0

 k

K 

1 p k

 k subject to x

0

X

, and

 k

  i k x

0

  i k

, i=1, ...M; k=1, ...K

which provides a lower bound on the solution of Z.

L-Shaped (Benders') Method page 14 D.L. Bricker

Benders' algorithm solves the current Partial Master Problem , obtaining

 x

(a "trial solution") and

0

 an underestimate k

K 

1 p Q k

  of the associated expected second-stage cost.

The actual expected second-stage cost, i.e., k

K 

1 p Q k

 

, is then evaluated by solving the second-stage problem for each scenario.

Additional constraints are added to the Partial Master Problem to complete the iteration.

L-Shaped (Benders') Method page 15 D.L. Bricker

At each iteration of Benders' algorithm, then,

 the subproblem solution

   cx

0

 k

K 

1 p Q k

  provides an upper bound for Z, and

 the Partial Master Solution

   cx

0

 k

K 

1 p Q k

  provides a lower bound for Z.

L-Shaped (Benders') Method page 16 D.L. Bricker

Benders' Algorithm-- "Uni-cut" Version

In the uni-cut version, at each iteration i the K constraints

 k

  i k x

0

  i k

, k=1, K are aggregated before adding them to the Partial Master

Problem :

Z

Min cx

0

  subject to x

0

X

, and

  k

K 

1 p k

 i k x

0

  i k

, i=1, ...I

Generally, more iterations are required, but there are fewer cuts

(& less computation) in each Partial Master Problem.

L-Shaped (Benders') Method page 17 D.L. Bricker

Benders' algorithm is as follows:

Step 0 . Select an arbitrary x

0

X

. Initialize the upper bound

Z

  and lower bound

Z

  .

Note: This allows the user to make use of knowledge about his/her problem by using an initial "guess" at the solution.

Another alternative is to solve the ExpectedValue LP problem to obtain the initial x

0

:

Minimize cx subject to Ax

 b ,

 k

K 

1 p T k

 

x

0 k

K 

1 p h k

L-Shaped (Benders') Method page 18 D.L. Bricker

Step 1a . Solve the primal subproblems to evaluate optimal dual variables  , k=1,…K and compute k

Q k

 

and the

 

.

1b . For each scenario, generate an optimality cut.

1c. Uni-cut version: Aggregate the K optimality cuts and add to Benders' master problem.

Multi-cut version: Add each of the K optimality cuts to

Benders' master problem.

1d . Update the upper bound,

Z

 min

,

  

.

1e . If

Z Z

 , STOP ; else continue to Step 2.

D.L. Bricker L-Shaped (Benders') Method page 19

Step 2a . Solve the Partial Master Problem to obtain

 an optimal x

, and

0

 an underestimate expected cost

 

.

   cx

0

 k

K 

1 p Q k

 

of the

2b . Update the lower bound,

Z

 max

,

  

.

2c . If

Z Z

 , STOP; else return to Step 1a .

D.L. Bricker L-Shaped (Benders') Method page 20

At each iteration, the number of constraints (and therefore the size of the basis) of the Partial Master Problem increases, adding to the computational burden.

Furthermore, because constraints have been added, the solution of each partial master problem is generally infeasible in the partial master problem which follows.

L-Shaped (Benders') Method page 21 D.L. Bricker

For these reasons, it is preferable to solve the dual of the partial master problem, which is formed by appending a column to the dual of the previous partial master problem, so that the solution of the dual of the previous Partial Master

Problem may serve as an initial basic feasible solution for the

Partial Master Problem which follows.

L-Shaped (Benders') Method page 22 D.L. Bricker

If

X

 

:

,

0

, the linear programming dual of Benders'

Partial Master problem is

Max bu

K M   i k k

1 i

1 v k i subject to A u v k i

K M  k

1 i

1

 i v i  c

M  v i k

 p k

, k

1, i

1

 

, i

1, ;

1,

K

K

(The dual variable u is unrestricted in sign if X is defined by Ax=b, but nonnegative if Axb, and nonpositive if

Ax

 b

.)

L-Shaped (Benders') Method page 23 D.L. Bricker

It can be shown that, in fact, this dual of Benders' Master Problem is identical to the Master Problem of Dantzig-Wolfe decomposition applied to the original large-scale deterministic equivalent LP!

L-Shaped (Benders') Method page 24 D.L. Bricker

Download