SETS:

nodes;

arcs0(nodes,nodes):x0,c0;

arcs1(nodes,nodes): x1, x2,c1;

ENDSETS

DATA:

nodenumber=122;
nodes=1..nodenumber;

arcs0=
1 12, 1 2, 1 15, 2 17, 2 3, 3 1, 3 18, 3 4, 4 3,4 9, 5 4 ,5 8, 6 5, 7 4, 7 8, 8 10, 9 7, 9 10, 10 6, 10 115,
11 1, 12 35, 13 11,13 12, 13 38, 14 13,14 11, 15 16, 16 14, 16 26, 17 15, 18 17, 19 9,19 18, 20 19
21 20, 22 20, 22 24, 23 22,23 27, 24 23, 26 24,26 27, 26 39,27 29, 28 33, 28 27, 29 23,29 30, 29 31, 30 42
31 30,32 31, 32 33,33 34,34 37, 34 36,35 34,35 40,36 39, 37 38,37 13, 38 36, 39 28,40 32, 40 49
41 40, 41 44,42 41,42 43,43 70,43 44, 44 60,45 40,45 47,46 45, 46 44,47 46, 48 40,49 50,49 53,50 48,50 51
51 122,52 51,53 50,53 52,54 52,54 56,55 53, 55 54, 55 57,55 59,56 61,57 55,57 56,58 63, 59 62,60 57,60 61
61 122,62 87,63 86,64 65,64 57,65 66,66 67,67 68,67 73,68 69,69 73,70 71,70 69
71 74,71 69,72 71,73 76,74 73,75 72,75 74,76 80,77 75,78 84,79 101,80 81
81 85,82 77,83 88,84 95,85 82,85 64,85 89,86 85,87 86,87 89,88 85,89 87,89 88,89 90,89 91,90 89,90 92,90 93
91 89,91 96,92 96,92 97,93 90,95 89,96 91,96 101,98 94,100 93,100 105
101 79,101 96,102 98,104 112,105 100,105 115,106 107,107 109,107 108,108 111,108 102 ,109 110,110 108
111 112,112 113,113 114,113 116,114 105,115 6,115 114,115 116,116 117,117 113,117 118,118 111,118 119,
121 120,122 46;

c0=30 10 20 20  10 20 20 20 15 20 20 5 15 2 20 10 8 25 20 25 
15 25 10 2 15 10 10 2 10 8 7 6 7 15 15
18 7 5 3 5 4 16 9 3 2 13 3 4 3 3 30
5 20 3 4 2 15 3 60 10 5 15 6 8 35 30
25 20 7 15 10 6 13 18 2 4 10 4 11 5 35 7 4
3 7 20 12 10 10 25 4 25 17 4 25 3 20 20 5 7
7 16 16 10 20 3 3 3 4 4 5 6 3
5 4 4 5 3 5 3 3 2 15 10 6
4 11 10 4 6 13 20 5 5 10 2 14 13 13 9 13 10 18
9 10 12 10 15 20 10 15 8 20 15
7 15 13 11 10 30 7 10 7  5  10 4 10
5 4 4 11 10 30 9 3 5 10 6 13 9
20  5
;

arcs1=
4 19,9 21,10 119,119 120,25 120,21 25, 25 121,106 121,79 106,78 79,77 78,76 77,66 76,44 66,42 44,47 48
57 58,58 59,62 63,63 64,81 82,82 83,83 84
101 102,102 103,103 104,104 105
95 96, 96 97,97 98,98 99,99 100
99 103,103 111
91 92,92 94,93 94
28 31
;

c1=
15 12 10 5 10 9 8 7 7 8 2 7 6 20 15 7
5 5 5 5 2 2 2
 9 8 4 5
6 4 6 6 5
8 8
6 4 4
2
;

ENDDATA

min=@SUM(arcs0: c0*x0)+ @SUM(arcs1: c1*x1) + @SUM(arcs1: x2*c1);

@FOR(nodes(i): [n]  
        @SUM(arcs0(j,i): x0(j,i))+@SUM(arcs1(j,i): x1(j,i))+@SUM(arcs1(i,j): x2(i,j))=
        @SUM(arcs0(i,j): x0(i,j))+@SUM(arcs1(i,j): x1(i,j))+@SUM(arcs1(j,i): x2(j,i))
);

@FOR(arcs0(i,j): [b1] x0(i,j) > 1);
@FOR(arcs1(i,j): [b2] x1(i,j)+x2(i,j) > 1 ;
                 @GIN(x1(i,j));
                 @GIN(x2(i,j))
);