-
Notifications
You must be signed in to change notification settings - Fork 0
/
pricingSolver.lp
85 lines (84 loc) · 2.72 KB
/
pricingSolver.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
\ENCODING=ISO-8859-1
\Problem name: IloCplex
Minimize
obj1: - X(1) - X(2) - X(3) - X(4) - X(5) - X(6) - X(7) - X(8) - X(9) - X(10)
- X(11) - X(12) - X(13) - X(14) - X(15) - X(16) - X(17) - X(18) - X(19)
- X(20) - X(21) - X(22) - X(23) - 0.5 X(24) - 0.5 X(25) - 0.5 X(26)
- 0.5 X(27) - 1.11022302462516e-16 X(28) - 1.11022302462516e-16 X(29)
- 1.11022302462516e-16 X(30) - 1.11022302462516e-16 X(31)
- 1.11022302462516e-16 X(32) - 1.11022302462516e-16 X(33)
- 1.11022302462516e-16 X(34) - 2.22044604925031e-16 X(35)
- 1.11022302462516e-16 X(36) - 1.11022302462516e-16 X(37)
+ 2.22044604925031e-17 X(38) + 2.22044604925031e-17 X(39)
- 6.66133814775094e-17 X(41) - 1.11022302462516e-16 X(42)
- 2.22044604925031e-17 X(43) - 1.11022302462516e-16 X(44)
+ 2.22044604925031e-16 X(46) - 8.88178419700125e-17 X(47)
- 1.11022302462516e-16 X(48) - 1.33226762955019e-16 X(49)
- 4.44089209850063e-17 X(50) + 1
Subject To
c1: 99 X(1) + 96 X(2) + 96 X(3) + 96 X(4) + 95 X(5) + 95 X(6) + 94 X(7)
+ 90 X(8) + 90 X(9) + 88 X(10) + 87 X(11) + 84 X(12) + 82 X(13) + 78 X(14)
+ 77 X(15) + 77 X(16) + 77 X(17) + 75 X(18) + 75 X(19) + 70 X(20)
+ 70 X(21) + 69 X(22) + 68 X(23) + 56 X(24) + 54 X(25) + 53 X(26)
+ 53 X(27) + 50 X(28) + 50 X(29) + 49 X(30) + 48 X(31) + 47 X(32)
+ 45 X(33) + 38 X(34) + 36 X(35) + 35 X(36) + 34 X(37) + 28 X(38)
+ 25 X(39) + 21 X(40) + 19 X(41) + 18 X(42) + 16 X(43) + 13 X(44)
+ 13 X(45) + 7 X(46) + 7 X(47) + 6 X(48) + 3 X(49) + 3 X(50) <= 120
Bounds
0 <= X(1) <= 1
0 <= X(2) <= 1
0 <= X(3) <= 1
0 <= X(4) <= 1
0 <= X(5) <= 1
0 <= X(6) <= 1
0 <= X(7) <= 1
0 <= X(8) <= 1
0 <= X(9) <= 1
0 <= X(10) <= 1
0 <= X(11) <= 1
0 <= X(12) <= 1
0 <= X(13) <= 1
0 <= X(14) <= 1
0 <= X(15) <= 1
0 <= X(16) <= 1
0 <= X(17) <= 1
0 <= X(18) <= 1
0 <= X(19) <= 1
0 <= X(20) <= 1
0 <= X(21) <= 1
0 <= X(22) <= 1
0 <= X(23) <= 1
0 <= X(24) <= 1
0 <= X(25) <= 1
0 <= X(26) <= 1
0 <= X(27) <= 1
0 <= X(28) <= 1
0 <= X(29) <= 1
0 <= X(30) <= 1
0 <= X(31) <= 1
0 <= X(32) <= 1
0 <= X(33) <= 1
0 <= X(34) <= 1
0 <= X(35) <= 1
0 <= X(36) <= 1
0 <= X(37) <= 1
0 <= X(38) <= 1
0 <= X(39) <= 1
0 <= X(40) <= 1
0 <= X(41) <= 1
0 <= X(42) <= 1
0 <= X(43) <= 1
0 <= X(44) <= 1
0 <= X(45) <= 1
0 <= X(46) <= 1
0 <= X(47) <= 1
0 <= X(48) <= 1
0 <= X(49) <= 1
0 <= X(50) <= 1
Binaries
X(1) X(2) X(3) X(4) X(5) X(6) X(7) X(8) X(9) X(10) X(11) X(12)
X(13) X(14) X(15) X(16) X(17) X(18) X(19) X(20) X(21) X(22) X(23)
X(24) X(25) X(26) X(27) X(28) X(29) X(30) X(31) X(32) X(33) X(34)
X(35) X(36) X(37) X(38) X(39) X(40) X(41) X(42) X(43) X(44) X(45)
X(46) X(47) X(48) X(49) X(50)
End