-
Notifications
You must be signed in to change notification settings - Fork 0
/
out.lp
76 lines (73 loc) · 1.61 KB
/
out.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
/* Objective function */
max: +9 C1 +8 C2 +7 C3 +6 C4 +5 C5 +4 C6 +3 C7 +2 C8 +C9 +7 C11 +8 C12 +5 C13 +6 C14 +9 C15 +3 C16 +2 C18
+C19 +4 C20 +C22 +2 C23 +3 C24 +4 C25 +5 C26 +6 C27 +7 C28 +8 C29 +9 C30 +8 C31 +7 C32 +6 C33 +5 C34
+9 C35 +3 C36 +4 C37 +2 C38 +C39 +9 C41 +8 C42 +C43 +2 C45 +7 C46 +6 C47 +3 C48 +4 C49 +5 C50;
/* Constraints */
+C1 +C11 +C21 +C31 +C41 <= 1;
+C2 +C12 +C22 +C32 +C42 <= 1;
+C3 +C13 +C23 +C33 +C43 <= 1;
+C4 +C14 +C24 +C34 +C44 <= 1;
+C5 +C15 +C25 +C35 +C45 <= 1;
+C6 +C16 +C26 +C36 +C46 <= 1;
+C7 +C17 +C27 +C37 +C47 <= 1;
+C8 +C18 +C28 +C38 +C48 <= 1;
+C9 +C19 +C29 +C39 +C49 <= 1;
+C10 +C20 +C30 +C40 +C50 <= 1;
+C1 +C2 +C3 +C4 +C5 +C6 +C7 +C8 +C9 +C10 = 2;
+C11 +C12 +C13 +C14 +C15 +C16 +C17 +C18 +C19 +C20 = 2;
+C21 +C22 +C23 +C24 +C25 +C26 +C27 +C28 +C29 +C30 = 2;
+C31 +C32 +C33 +C34 +C35 +C36 +C37 +C38 +C39 +C40 = 2;
+C41 +C42 +C43 +C44 +C45 +C46 +C47 +C48 +C49 +C50 = 2;
/* Variable bounds */
C1 <= 1;
C2 <= 1;
C3 <= 1;
C4 <= 1;
C5 <= 1;
C6 <= 1;
C7 <= 1;
C8 <= 1;
C9 <= 1;
C10 <= 1;
C11 <= 1;
C12 <= 1;
C13 <= 1;
C14 <= 1;
C15 <= 1;
C16 <= 1;
C17 <= 1;
C18 <= 1;
C19 <= 1;
C20 <= 1;
C21 <= 1;
C22 <= 1;
C23 <= 1;
C24 <= 1;
C25 <= 1;
C26 <= 1;
C27 <= 1;
C28 <= 1;
C29 <= 1;
C30 <= 1;
C31 <= 1;
C32 <= 1;
C33 <= 1;
C34 <= 1;
C35 <= 1;
C36 <= 1;
C37 <= 1;
C38 <= 1;
C39 <= 1;
C40 <= 1;
C41 <= 1;
C42 <= 1;
C43 <= 1;
C44 <= 1;
C45 <= 1;
C46 <= 1;
C47 <= 1;
C48 <= 1;
C49 <= 1;
C50 <= 1;
/* Integer definitions */
int C1,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11,C12,C13,C14,C15,C16,C17,C18,C19,C20,C21,C22,C23,C24,C25,C26,C27,C28,C29,C30,C31,C32,C33,C34,C35,C36,C37,C38,C39,C40,C41,C42,C43,C44,C45,C46,C47,C48,C49,C50;