Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*********************************************
- * OPL 12.6.0.0 Model
- * Author: Stijn Berkvens
- * Creation Date: 1-apr.-2016 at 16:39:56
- *********************************************/
- //############LOCATIONS############
- //Sambodromo (v=1): Archery (s=1..4) and Marathons (s=47..48) not on the same day
- forall(i,j in SVR: i.Sportx in 1..4 && j.Sportx in 47..48,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Olympic Stadium (v=2): Athletics(s=5..46) and Football (s=132,133) not on the same day
- forall(i,j in SVR: i.Sportx in 5..46 && j.Sportx in 132..133,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Pontal (v=3): Steeplechases (s=49..51)and Time Trials (s=97,97) not on the same day
- forall(i,j in SVR: i.Sportx in 49..51 && j.Sportx in 96..97,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Lagoa Stadium (v=9): Canoe Sprint (s=78..89) and Rowing (s=174..187) not on the same day
- forall(i,j in SVR: i.Sportx in 78..89 && j.Sportx in 174..187,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Fort Copacabana (v=12): Road Race (s=94..95), Marathon Swimming (s=247..248) and Triathlon (s=268..269) not on the same day
- forall(i,j in SVR: i.Sportx in 94..95 && j.Sportx in 247..248,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 94..95 && j.Sportx in 265..269,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 247..248 && j.Sportx in 265..269,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Maria Lenk Aquatics Centre (v=14): Diving (s=108..115), Synchronized Swimming (s=249..250) and Water Polo (s=272..273) not on the same day
- forall(i,j in SVR: i.Sportx in 108..115 && j.Sportx in 249..250,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 108..115 && j.Sportx in 272..273,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 249..250 && j.Sportx in 272..273,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Olympic Equestrian Centre (v=15): Equestrian Dressage (s=116..117), Eventing (s = 118..119) and Jumping (s=120..121) not on the same day
- forall(i,j in SVR: i.Sportx in 116..117 && j.Sportx in 118..119,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 116..117 && j.Sportx in 120..121,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 118..119 && j.Sportx in 120..121,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Carioca Arena 3 (v=16): Fencing (s=122..132) and Taekwando (s=255..262)not on the same day
- forall(i,j in SVR: i.Sportx in 122..132 && j.Sportx in 255..262,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Rio Olympic Arena (v=24): Gymnastics Artistic (s=136..149), Rhythmic (s=150..151) and Trampoline (s=152..153) not on the same day
- forall(i,j in SVR: i.Sportx in 136..149 && j.Sportx in 150..151,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 136..149 && j.Sportx in 152..153,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 150..151 && j.Sportx in 152..153,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Carioca Arena 2 (v=27): Judo (s=158..171), Wrestling Freestyle (s=289..300) and Wrestling G-R (s=301..306) not on the same day
- forall(i,j in SVR: i.Sportx in 158..171 && j.Sportx in 289..300,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 158..171 && j.Sportx in 301..306,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- forall(i,j in SVR: i.Sportx in 289..300 && j.Sportx in 301..306,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Youth Arena (v=28): Basketball Women (s=58) and Modern Pentathlon (s=172..173) not on the same day
- forall(i,j in SVR: i.Sportx in 58..58 && j.Sportx in 172..173,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Deodoro Stadium (v=29): Modern Pentathlon (172..173) and Rugby (s=188..189) not on the same day
- forall(i,j in SVR: i.Sportx in 172..173 && j.Sportx in 188..189,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
- //Olympic Aquatics Stadium (v=32): Swimming (s=215..246) and Water Polo (s=272..273) not on the same day
- forall(i,j in SVR: i.Sportx in 172..173 && j.Sportx in 188..189,
- b,c in Times: b.Day == c.Day)
- (x[i,b] + x[j,c]) <= 1;
Advertisement
Add Comment
Please, Sign In to add comment