The Branch-and-Bound Method : Knapsack Problem
Let 𝑐𝑐𝑖𝑖 be the benefit obtained if item 𝑖𝑖 is chosen, 𝑏𝑏 is the amount of available
resource and 𝑎𝑎𝑖𝑖 is the amount of available resource used by item 𝑖𝑖.
We can then write
max 𝑧𝑧 = 𝑐𝑐1𝑥𝑥1 + ⋯+ 𝑐𝑐𝑛𝑛 𝑥𝑥𝑛𝑛
𝑎𝑎1𝑥𝑥1 + … + 𝑎𝑎𝑛𝑛 𝑥𝑥𝑛𝑛 ≤ 𝑏𝑏
𝑥𝑥1 , … , 𝑥𝑥𝑛𝑛 ∈ 0,1
When knapsack problems are solved by the branch-and-bound method, two
aspects of the method greatly simplify. Because each variable must equal 0
öge kaynak
or 1.
! !ç!n 1 b
ner ed!ler fayda
-
elde
Additionally, observe that &
𝑐𝑐𝑖𝑖/𝑎𝑎𝑖𝑖 might be interpreted as the benefit by a unit
of resource 𝑖𝑖. We can then say that the best and worst items to have are the
ones with the largest and smallest & 𝑐𝑐𝑖𝑖/𝑎𝑎𝑖𝑖 , respectively.
15
i
The Branch-and-Bound Method : Knapsack Problem : Example
&
her eşya ya alının
ya alınmaz
.
Item ci/ai Ranking Özel!k
1 16/5=3.2 1 Gest
2 22/7=3.14 2
3 12/4=3 3
4 8/3=2.66 4
Est
16
↓
17