-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathelsp.lp
38 lines (37 loc) · 1.08 KB
/
elsp.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
\ENCODING=ISO-8859-1
\Problem name:
Minimize
obj: 100 xt(0) + 100 xt(1) + 100 xt(2) + 100 xt(3) + 100 xt(4) + 100 xt(5)
+ 100 xt(6) + 100 xt(7) + 5000 yt(0) + 5000 yt(1) + 5000 yt(2)
+ 5000 yt(3) + 5000 yt(4) + 5000 yt(5) + 5000 yt(6) + 5000 yt(7)
+ 5 st(0) + 5 st(1) + 5 st(2) + 5 st(3) + 5 st(4) + 5 st(5) + 5 st(6)
+ 5 st(7)
Subject To
c1: xt(0) - st(0) = 200
c2: xt(1) + st(0) - st(1) = 400
c3: xt(2) + st(1) - st(2) = 800
c4: xt(3) + st(2) - st(3) = 800
c5: xt(4) + st(3) - st(4) = 1200
c6: xt(5) + st(4) - st(5) = 1200
c7: xt(6) + st(5) - st(6) = 1200
c8: xt(7) + st(6) - st(7) = 1200
c9: - xt(0) + 7200 yt(0) >= 0
c10: - xt(1) + 7200 yt(1) >= 0
c11: - xt(2) + 7200 yt(2) >= 0
c12: - xt(3) + 7200 yt(3) >= 0
c13: - xt(4) + 7200 yt(4) >= 0
c14: - xt(5) + 7200 yt(5) >= 0
c15: - xt(6) + 7200 yt(6) >= 0
c16: - xt(7) + 7200 yt(7) >= 0
Bounds
0 <= yt(0) <= 1
0 <= yt(1) <= 1
0 <= yt(2) <= 1
0 <= yt(3) <= 1
0 <= yt(4) <= 1
0 <= yt(5) <= 1
0 <= yt(6) <= 1
0 <= yt(7) <= 1
Binaries
yt(0) yt(1) yt(2) yt(3) yt(4) yt(5) yt(6) yt(7)
End