Skip to main content
. Author manuscript; available in PMC: 2017 Oct 19.
Published in final edited form as: J Health Econ. 2016 Jun 24;49:97–108. doi: 10.1016/j.jhealeco.2016.06.001

Algorithm 1.

Find candidate solutions.

1: procedure A. Find y minimal candidate solution
2:   for iI do
3:      xip0
4:   ℐ ← 0
5:   while i1,cixipbp do
6:      xp1
7:     ℐ ← ℐ + 1
8:    xpbpi1,1cixipc
9: procedure B. Find y maximal candidate solution
10:   for iI do
11:      xiP0
12:   ℐ ← 0
13:   while i1,cixiPbP do
14:      xP1
15:     ℐ ← ℐ + 1
16:    xPbPi1,1cixiPc
17: procedure C. Find whole number candidate solutions
18:   for i″ ∈ I do
19:     for i′ ∈ I do
20:       if i′ ≤ ithen
21:          xiw(i)1
22:       else
23:          xiw(i)0
     yw(i)=bi{1,,i}ci
24: procedure D. Find fractional candidate solutions
25:   for i″ ∈ I do
26:     for i′ ∈ I do
27:       if i′ ≤ i″ − 1 then
28:          xif(i)1
29:       if i′ ≥ i″ + 1 then
30:          xif(i)0
31:      yf(i)γ[ciυii{1,,i1}υi+bi{1,,i1}ci]/(γ+1)
32:      xif(i)[bi{1,,i1}ciyf(i)]/ci