| 49 | |
| 50 | EXAMPLES:: |
| 51 | |
| 52 | sage: from sage.coding.delsarte_bounds import _delsarte_LP_building |
| 53 | sage: _,p=_delsarte_LP_building(7, 3, 0, 2, False, "PPL") |
| 54 | sage: p.show() |
| 55 | Maximization: |
| 56 | x_0 + x_1 + x_2 + x_3 + x_4 + x_5 + x_6 + x_7 |
| 57 | Constraints: |
| 58 | constraint_0: 1 <= x_0 <= 1 |
| 59 | constraint_1: 0 <= x_1 <= 0 |
| 60 | constraint_2: 0 <= x_2 <= 0 |
| 61 | constraint_3: -7 x_0 - 5 x_1 - 3 x_2 - x_3 + x_4 + 3 x_5 + 5 x_6 + 7 x_7 <= 0 |
| 62 | constraint_4: -7 x_0 - 5 x_1 - 3 x_2 - x_3 + x_4 + 3 x_5 + 5 x_6 + 7 x_7 <= 0 |
| 63 | constraint_5: -21 x_0 - 9 x_1 - x_2 + 3 x_3 + 3 x_4 - x_5 - 9 x_6 - 21 x_7 <= 0 |
| 64 | constraint_6: -21 x_0 - 9 x_1 - x_2 + 3 x_3 + 3 x_4 - x_5 - 9 x_6 - 21 x_7 <= 0 |
| 65 | constraint_7: -35 x_0 - 5 x_1 + 5 x_2 + 3 x_3 - 3 x_4 - 5 x_5 + 5 x_6 + 35 x_7 <= 0 |
| 66 | constraint_8: -35 x_0 - 5 x_1 + 5 x_2 + 3 x_3 - 3 x_4 - 5 x_5 + 5 x_6 + 35 x_7 <= 0 |
| 67 | constraint_9: -35 x_0 + 5 x_1 + 5 x_2 - 3 x_3 - 3 x_4 + 5 x_5 + 5 x_6 - 35 x_7 <= 0 |
| 68 | constraint_10: -35 x_0 + 5 x_1 + 5 x_2 - 3 x_3 - 3 x_4 + 5 x_5 + 5 x_6 - 35 x_7 <= 0 |
| 69 | constraint_11: -21 x_0 + 9 x_1 - x_2 - 3 x_3 + 3 x_4 + x_5 - 9 x_6 + 21 x_7 <= 0 |
| 70 | constraint_12: -21 x_0 + 9 x_1 - x_2 - 3 x_3 + 3 x_4 + x_5 - 9 x_6 + 21 x_7 <= 0 |
| 71 | constraint_13: -7 x_0 + 5 x_1 - 3 x_2 + x_3 + x_4 - 3 x_5 + 5 x_6 - 7 x_7 <= 0 |
| 72 | constraint_14: -7 x_0 + 5 x_1 - 3 x_2 + x_3 + x_4 - 3 x_5 + 5 x_6 - 7 x_7 <= 0 |
| 73 | constraint_15: - x_0 + x_1 - x_2 + x_3 - x_4 + x_5 - x_6 + x_7 <= 0 |
| 74 | constraint_16: - x_0 + x_1 - x_2 + x_3 - x_4 + x_5 - x_6 + x_7 <= 0 |
| 75 | Variables: |
| 76 | x_0 is a continuous variable (min=0, max=+oo) |
| 77 | x_1 is a continuous variable (min=0, max=+oo) |
| 78 | x_2 is a continuous variable (min=0, max=+oo) |
| 79 | x_3 is a continuous variable (min=0, max=+oo) |
| 80 | x_4 is a continuous variable (min=0, max=+oo) |
| 81 | x_5 is a continuous variable (min=0, max=+oo) |
| 82 | x_6 is a continuous variable (min=0, max=+oo) |
| 83 | x_7 is a continuous variable (min=0, max=+oo) |
| 84 | |