| Algorithm 2: |
| Input: |
| : optimal solution in P |
| : the i-th solution P |
| Optimization: |
| 1: |
| 2: for to do |
| 3: if then |
| 4: |
| 5: else if then |
| 6: if then |
| 7: |
| 8: else if then |
| 9: if then |
| 10: |
| 11: end if |
| 12: end if |
| 13: end if |
| 14: end for |
| Output: |
| Algorithm 2: |
| Input: |
| : optimal solution in P |
| : the i-th solution P |
| Optimization: |
| 1: |
| 2: for to do |
| 3: if then |
| 4: |
| 5: else if then |
| 6: if then |
| 7: |
| 8: else if then |
| 9: if then |
| 10: |
| 11: end if |
| 12: end if |
| 13: end if |
| 14: end for |
| Output: |