DOC PREVIEW
UT Dallas CS 6385 - 20BBEX0

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Application Example of theBranch and Bound AlgorithmConsider the Capital Budgeting problem (which, as we already know, is structurally identicalto the Knapsack problem, so we can use either name). Its formulation is this:max Z =nXi=1pixiSubject tonXi=1cixi≤ Cxi∈ {0, 1}, i = 1, . . . , nLet us try to find the exact solution with the Branch and Bound (B&B) algorithm. In orderto do it, we need to handle the following issues.1. Transforming the formulationIn B&B we considered the optimization taskmaxx∈Bf(x).This does not have any constraint and seeks for the optimum over all binary vectors ofdimension n. In contrast, our problem do es have a constraint and seeks for the optimumonly over those binary vectors that satisfy the constraint.To handle this difference, we need to transform our constrained task into an unconstrainedone. It can be done by the method that is often called penalty function method. It is based onthe idea that we can substitute a constraint by modifying the objective function, such thatwe “penalize” those vectors that violate the constraint. In this way, we can do the searchover all vectors (with the modified objective function), because when a global, unconstrainedoptimum is found, the “penalty” does not allow it to be taken at a vector that violates theconstraint.Specifically, in our case, we can do the following. The original objective function wasf(x) =nXi=1pixi.1Let the modified objective function beef(x) =Pni=1pixiifPni=1cixi≤ C0 ifPni=1cixi> C.We can observe that whenever a vector x satisfies the constraint,ef(x) = f(x) holds. On theother hand, if x violates the constraint, thenef(x) = 0. Since the maximum we are lookingfor is positive1, therefore, this positive maximum ofef(x) cannot be taken on a vector thatviolates the constraint, asef(x) = 0 for those vectors, by definition. Thus, if we solvemaxx∈Bef(x)by B&B, then the optimum provides us with the optimum of the Knapsack problem.2. Finding a good upper bound functionIn B&B we use an upper bound function Uk(b) that provides an upper bound on the partialoptimum Fk(b) (see the Lecture Note about B&B).What will be Fk(b) is our case? If we fix the first k variables at values b1, . . . , bk∈ {0, 1},then we get the following new Knapsack problem:maxnXi=k+1pixi+kXi=1pibiSubject tonXi=k+1cixi≤ C −kXi=1cibixi∈ {0, 1}, i = k + 1, . . . , nFk(b) is the optimum of this task. How do we get the upper bound function Uk(b)? We cantake the LP relaxation of this ILP, replacing the constraint xi∈ {0, 1} by 0 ≤ xi≤ 1. Thus,Uk(b) is the optimum solution of the LP1Assuming each item alone fits in the knapsack, since we can a priori exclude those that do not.2Uk(b) = maxnXi=k+1pixi+kXi=1pibiSubject tonXi=k+1cixi≤ C −kXi=1cibi0 ≤ xi≤ 1, i = k + 1, . . . , n3. Fast computation of the upper b ound functionThe whole B&B approach makes sense only if we can compute the upper bound functionsignificantly faster than the original task. In our case we face the problem: how do we quicklysolve the above LP that defines Uk(b)? Fortunately, this LP has a special structure: it is thecontinuous version of the Knapsack problem. By continuous we mean that xi∈ {0, 1} hasbeen replaced by 0 ≤ xi≤ 1. For such a continuous knapsack it is known that the optimumcan be found by a fast greedy algorithm, as follows.Order the variables according to decreasing pi/ciratio. Let us call it preference ordering.The most preferred variable is the one with the highest pi/ciratio. Consider the variablesstarting by the most preferred one, and assign them the value 1, as long as it is possiblewithout violating the budget constraint. (Note that in the considered subproblem the budgetis C −Pki=1cibi. If it happens to be negative, then there is no solution to the subproblem,and we can represent it by Uk(b) = −1, so that this branch of the search tree will surelybe cut down.) When we cannot continue assigning 1 anymore without violating the budget,then assign a fractional value to the next variable, so that the remaining part of the budget,if any, is exactly used up. The remaining variables, if any, take 0 as their value. One canprove that this value assignment gives the optimum solution to the continuous Knapsackproblem. Therefore, we have a fast way of computing Uk(b).Thus, we have all the ingredients to apply B&B. We aim at computingmaxx∈Bef(x)and whenever the algorithm calls for Uk(b), we can compute it by the fast algorithm


View Full Document

UT Dallas CS 6385 - 20BBEX0

Documents in this Course
assn1

assn1

2 pages

38rel2

38rel2

5 pages

Report

Report

3 pages

networks

networks

18 pages

lp2

lp2

44 pages

lp2 (2)

lp2 (2)

27 pages

lp1(1)

lp1(1)

21 pages

integer1

integer1

50 pages

FrankR2

FrankR2

3 pages

duality

duality

28 pages

CMST

CMST

44 pages

hw4

hw4

3 pages

for 1

for 1

11 pages

ENCh02

ENCh02

33 pages

pree

pree

2 pages

new  3

new 3

2 pages

new  2

new 2

2 pages

hw4a

hw4a

2 pages

T2_Sol

T2_Sol

4 pages

ISM3

ISM3

8 pages

hw4_sol

hw4_sol

6 pages

Elm04_06

Elm04_06

11 pages

atn proj2

atn proj2

20 pages

12CUT1

12CUT1

8 pages

09Ford

09Ford

23 pages

08FLOW

08FLOW

6 pages

03LP_su

03LP_su

6 pages

40REL40

40REL40

5 pages

39rel3

39rel3

5 pages

38arel2

38arel2

5 pages

37REL1

37REL1

3 pages

24TABU

24TABU

3 pages

22DYNPR

22DYNPR

3 pages

21B&C

21B&C

2 pages

19BB

19BB

5 pages

14CAPBUD0

14CAPBUD0

11 pages

35BRXCH

35BRXCH

2 pages

34COMB

34COMB

4 pages

32CAPAS

32CAPAS

4 pages

31QUEUE

31QUEUE

3 pages

Load more
Download 20BBEX0
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view 20BBEX0 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view 20BBEX0 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?