Algorithm 1.
Heuristic approach
| 1: Set initial value X0 ⊳ (Initialization) |
| 2: for do |
| 3: ⊳ (Integration) |
| 4: if Xi, 3>X3,up: then ⊳ (Check for violation) |
| 5: if then ⊳ (Treatment if allowed) |
| 6: |
| 7: else ⊳ (Shift treatment) |
| 8: Find largest with and |
| 9: Set i = i* |
| 10: |