1
0

🐛 Fix compilation problems

This commit is contained in:
Jip J. Dekker 2017-02-22 10:48:02 +01:00
parent 242f04c553
commit a0f4e4094e
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ constraint x[1] == 1;
% Consecutive cards match
predicate adjacent(var 1..52: a, var 1..52: b) :: presolve(autotable)
= ((x-y) in {13*i+1 | i in -4..3} union {13*i-1 | i in -3..4}) :: domain;
= ((a-b) in {13*i+1 | i in -4..3} union {13*i-1 | i in -3..4}) :: domain;
constraint forall(i in 1..51) ( adjacent(x[i], x[i+1]) );

View File

@ -228,7 +228,7 @@ constraint
);
% channel break <---> hap (2)
predicate channel_break_hap(var breakable: bt, array[period] of var A..H: hapt, var team: t) :: presolve(presolve(model)) =
predicate channel_break_hap(var breakable: bt, array[period] of var A..H: hapt, var team: t) :: presolve(autotable(model)) =
bt in breakable /\
(t in north_team -> hapt[(t mod divsize)+1] = A) /\
(t in south_team -> hapt[(t mod divsize)+1] = H) /\