-
Notifications
You must be signed in to change notification settings - Fork 0
/
B1_2A.lp
306 lines (306 loc) · 6.32 KB
/
B1_2A.lp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
\ Model problem A
\ LP format - for model browsing. Use MPS format to capture full model detail.
Maximize
a
Subject To
R0: x1x4 <= 25
R1: x1x5 <= 29
R2: x1x13 <= 5
R3: x1x17 <= 20
R4: x1x8 <= 7
R5: x1x16 <= 10
R6: x1x30 <= 1
R7: x4x2 <= 16
R8: x4x19 <= 16
R9: x4x24 <= 3
R10: x5x14 <= 22
R11: x5x23 <= 12
R12: x13x28 <= 11
R13: x13x11 <= 4
R14: x17x11 <= 9
R15: x17x29 <= 22
R16: x17x5 <= 8
R17: x17x25 <= 1
R18: x17x28 <= 8
R19: x2x24 <= 6
R20: x2x9 <= 8
R21: x2x11 <= 6
R22: x2x19 <= 6
R23: x19x8 <= 17
R24: x19x11 <= 8
R25: x19x25 <= 6
R26: x19x27 <= 7
R27: x14x3 <= 19
R28: x14x21 <= 17
R29: x23x12 <= 8
R30: x23x25 <= 4
R31: x23x8 <= 9
R32: x23x16 <= 10
R33: x23x29 <= 8
R34: x28x9 <= 3
R35: x28x22 <= 10
R36: x28x26 <= 9
R37: x11x18 <= 2
R38: x29x15 <= 17
R39: x29x27 <= 5
R40: x24x16 <= 11
R41: x24x26 <= 1
R42: x24x15 <= 7
R43: x8x6 <= 7
R44: x8x18 <= 3
R45: x3x10 <= 10
R46: x21x7 <= 12
R47: x21x30 <= 9
R48: x12x22 <= 1
R49: x25x30 <= 6
R50: x9x20 <= 1
R51: x9x17 <= 4
R52: x9x18 <= 10
R53: x1x4 >= -25
R54: x1x5 >= -29
R55: x1x13 >= -5
R56: x1x17 >= -20
R57: x1x8 >= -7
R58: x1x16 >= -10
R59: x1x30 >= -1
R60: x4x2 >= -16
R61: x4x19 >= -16
R62: x4x24 >= -3
R63: x5x14 >= -22
R64: x5x23 >= -12
R65: x13x28 >= -11
R66: x13x11 >= -4
R67: x17x11 >= -9
R68: x17x29 >= -22
R69: x17x5 >= -8
R70: x17x25 >= -1
R71: x17x28 >= -8
R72: x2x24 >= -6
R73: x2x9 >= -8
R74: x2x11 >= -6
R75: x2x19 >= -6
R76: x19x8 >= -17
R77: x19x11 >= -8
R78: x19x25 >= -6
R79: x19x27 >= -7
R80: x14x3 >= -19
R81: x14x21 >= -17
R82: x23x12 >= -8
R83: x23x25 >= -4
R84: x23x8 >= -9
R85: x23x16 >= -10
R86: x23x29 >= -8
R87: x28x9 >= -3
R88: x28x22 >= -10
R89: x28x26 >= -9
R90: x11x18 >= -2
R91: x29x15 >= -17
R92: x29x27 >= -5
R93: x24x16 >= -11
R94: x24x26 >= -1
R95: x24x15 >= -7
R96: x8x6 >= -7
R97: x8x18 >= -3
R98: x3x10 >= -10
R99: x21x7 >= -12
R100: x21x30 >= -9
R101: x12x22 >= -1
R102: x25x30 >= -6
R103: x9x20 >= -1
R104: x9x17 >= -4
R105: x9x18 >= -10
ay1: - x0x1 + x1x4 + x1x5 + x1x13 + x1x17 + x1x8 + x1x16 + x1x30 + y1 = 0
ay2: - x4x2 + x2x24 + x2x9 + x2x11 + x2x19 + y2 = 0
ay3: - x14x3 + x3x10 + y3 = 0
ay4: - x1x4 + x4x2 + x4x19 + x4x24 + y4 = 0
ay5: - x1x5 + x5x14 + x5x23 - x17x5 + y5 = 0
ay6: - x8x6 + y6 = 0
ay7: - x21x7 + y7 = 0
ay8: - x1x8 - x19x8 - x23x8 + x8x6 + x8x18 + y8 = 0
ay9: - x2x9 - x28x9 + x9x20 + x9x17 + x9x18 + y9 = 0
ay10: - x3x10 + y10 = 0
ay11: - x13x11 - x17x11 - x2x11 - x19x11 + x11x18 + y11 = 0
ay12: - x23x12 + x12x22 + y12 = 0
ay13: - x1x13 + x13x28 + x13x11 + y13 = 0
ay14: - x5x14 + x14x3 + x14x21 + y14 = 0
ay15: - x29x15 - x24x15 + y15 = 0
ay16: - x1x16 - x23x16 - x24x16 + y16 = 0
ay17: - x1x17 + x17x11 + x17x29 + x17x5 + x17x25 + x17x28 - x9x17 + y17
= 0
ay18: - x11x18 - x8x18 - x9x18 + y18 = 0
ay19: - x4x19 - x2x19 + x19x8 + x19x11 + x19x25 + x19x27 + y19 = 0
ay20: - x9x20 + y20 = 0
ay21: - x14x21 + x21x7 + x21x30 + y21 = 0
ay22: - x28x22 - x12x22 + y22 = 0
ay23: - x5x23 + x23x12 + x23x25 + x23x8 + x23x16 + x23x29 + y23 = 0
ay24: - x4x24 - x2x24 + x24x16 + x24x26 + x24x15 + y24 = 0
ay25: - x17x25 - x19x25 - x23x25 + x25x30 + y25 = 0
ay26: - x28x26 - x24x26 + y26 = 0
ay27: - x19x27 - x29x27 + y27 = 0
ay28: - x13x28 - x17x28 + x28x9 + x28x22 + x28x26 + y28 = 0
ay29: - x17x29 - x23x29 + x29x15 + x29x27 + y29 = 0
ay30: - x1x30 - x21x30 - x25x30 + y30 = 0
ly1: y1 >= 0
uy1: y1 <= 6
ly2: y2 >= 0
uy2: y2 <= 8
ly3: y3 >= 0
uy3: y3 <= 2
ly4: y4 >= 0
uy4: y4 <= 4
ly5: y5 >= 0
uy5: y5 <= 2
ly6: y6 >= 0
uy6: y6 <= 2
ly7: y7 >= 0
uy7: y7 <= 2
ly8: y8 >= 0
uy8: y8 <= 4
ly9: y9 >= 0
uy9: y9 <= 4
ly10: y10 >= 0
uy10: y10 <= 6
ly11: y11 >= 0
uy11: y11 <= 6
ly12: y12 >= 0
uy12: y12 <= 6
ly13: y13 >= 0
uy13: y13 <= 6
ly14: y14 >= 0
uy14: y14 <= 6
ly15: y15 >= 0
uy15: y15 <= 6
ly16: y16 >= 0
uy16: y16 <= 6
ly17: y17 >= 0
uy17: y17 <= 6
ly18: y18 >= 0
uy18: y18 <= 6
ly19: y19 >= 0
uy19: y19 <= 6
ly20: y20 >= 0
uy20: y20 <= 8
ly21: y21 >= 0
uy21: y21 <= 8
ly22: y22 >= 0
uy22: y22 <= 8
ly23: y23 >= 0
uy23: y23 <= 8
ly24: y24 >= 0
uy24: y24 <= 8
ly25: y25 >= 0
uy25: y25 <= 8
ly26: y26 >= 0
uy26: y26 <= 8
ly27: y27 >= 0
uy27: y27 <= 8
ly28: y28 >= 0
uy28: y28 <= 8
ly29: y29 >= 0
uy29: y29 <= 8
ly30: y30 >= 0
uy30: y30 <= 2
a: a >= 0
g1: 0.125 y1 + 0.125 y5 - a >= 0
g2: 0.0416666666666667 y2 + 0.0416666666666667 y4 + 0.0416666666666667 y9
+ 0.0416666666666667 y17 + 0.0416666666666667 y20 - a >= 0
g3: 0.02 y3 + 0.02 y7 + 0.02 y10 + 0.02 y14 + 0.02 y21 + 0.02 y25
+ 0.02 y30 - a >= 0
g4: 0.0416666666666667 y6 + 0.0416666666666667 y8 + 0.0416666666666667 y11
+ 0.0416666666666667 y13 + 0.0416666666666667 y18
+ 0.0416666666666667 y19 - a >= 0
g5: 0.0454545454545455 y15 + 0.0454545454545455 y16
+ 0.0454545454545455 y23 + 0.0454545454545455 y24 - a >= 0
g6: 0.05 y12 + 0.05 y22 + 0.05 y28 - a >= 0
g7: 0.0714285714285714 y26 + 0.0714285714285714 y27
+ 0.0714285714285714 y29 - a >= 0
ga: y1 + y2 + y3 + y4 + y5 + y6 + y7 + y8 + y9 + y10 + y11 + y12 + y13
+ y14 + y15 + y16 + y17 + y18 + y19 + y20 + y21 + y22 + y23 + y24 + y25
+ y26 + y27 + y28 + y29 + y30 >= 97.85
Bounds
x0x1 >= -999
x1x4 >= -999
x1x5 >= -999
x1x13 >= -999
x1x17 >= -999
x1x8 >= -999
x1x16 >= -999
x1x30 >= -999
x4x2 >= -999
x4x19 >= -999
x4x24 >= -999
x5x14 >= -999
x5x23 >= -999
x13x28 >= -999
x13x11 >= -999
x17x11 >= -999
x17x29 >= -999
x17x5 >= -999
x17x25 >= -999
x17x28 >= -999
x2x24 >= -999
x2x9 >= -999
x2x11 >= -999
x2x19 >= -999
x19x8 >= -999
x19x11 >= -999
x19x25 >= -999
x19x27 >= -999
x14x3 >= -999
x14x21 >= -999
x23x12 >= -999
x23x25 >= -999
x23x8 >= -999
x23x16 >= -999
x23x29 >= -999
x28x9 >= -999
x28x22 >= -999
x28x26 >= -999
x11x18 >= -999
x29x15 >= -999
x29x27 >= -999
x24x16 >= -999
x24x26 >= -999
x24x15 >= -999
x8x6 >= -999
x8x18 >= -999
x3x10 >= -999
x21x7 >= -999
x21x30 >= -999
x12x22 >= -999
x25x30 >= -999
x9x20 >= -999
x9x17 >= -999
x9x18 >= -999
y1 >= -999
y2 >= -999
y3 >= -999
y4 >= -999
y5 >= -999
y6 >= -999
y7 >= -999
y8 >= -999
y9 >= -999
y10 >= -999
y11 >= -999
y12 >= -999
y13 >= -999
y14 >= -999
y15 >= -999
y16 >= -999
y17 >= -999
y18 >= -999
y19 >= -999
y20 >= -999
y21 >= -999
y22 >= -999
y23 >= -999
y24 >= -999
y25 >= -999
y26 >= -999
y27 >= -999
y28 >= -999
y29 >= -999
y30 >= -999
a >= -999
End