forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
antisymmetric.fzn
42 lines (42 loc) · 2.42 KB
/
antisymmetric.fzn
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
var bool: BOOL____00002 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00004 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00006 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00008 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00010 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00012 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00014 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00016 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00018 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00020 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00022 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00024 :: is_defined_var :: var_is_introduced;
array [1..16] of var 0..1: x :: output_array([1..4, 1..4]);
constraint int_eq(x[1], 0);
constraint int_eq(x[6], 0);
constraint int_eq(x[11], 0);
constraint int_eq(x[16], 0);
constraint int_eq_reif(x[2], 0, BOOL____00008) :: defines_var(BOOL____00008);
constraint int_eq_reif(x[2], 1, BOOL____00002);
constraint int_eq_reif(x[3], 0, BOOL____00014) :: defines_var(BOOL____00014);
constraint int_eq_reif(x[3], 1, BOOL____00004);
constraint int_eq_reif(x[4], 0, BOOL____00020) :: defines_var(BOOL____00020);
constraint int_eq_reif(x[4], 1, BOOL____00006);
constraint int_eq_reif(x[5], 0, BOOL____00002) :: defines_var(BOOL____00002);
constraint int_eq_reif(x[5], 1, BOOL____00008);
constraint int_eq_reif(x[7], 0, BOOL____00016) :: defines_var(BOOL____00016);
constraint int_eq_reif(x[7], 1, BOOL____00010);
constraint int_eq_reif(x[8], 0, BOOL____00022) :: defines_var(BOOL____00022);
constraint int_eq_reif(x[8], 1, BOOL____00012);
constraint int_eq_reif(x[9], 0, BOOL____00004) :: defines_var(BOOL____00004);
constraint int_eq_reif(x[9], 1, BOOL____00014);
constraint int_eq_reif(x[10], 0, BOOL____00010) :: defines_var(BOOL____00010);
constraint int_eq_reif(x[10], 1, BOOL____00016);
constraint int_eq_reif(x[12], 0, BOOL____00024) :: defines_var(BOOL____00024);
constraint int_eq_reif(x[12], 1, BOOL____00018);
constraint int_eq_reif(x[13], 0, BOOL____00006) :: defines_var(BOOL____00006);
constraint int_eq_reif(x[13], 1, BOOL____00020);
constraint int_eq_reif(x[14], 0, BOOL____00012) :: defines_var(BOOL____00012);
constraint int_eq_reif(x[14], 1, BOOL____00022);
constraint int_eq_reif(x[15], 0, BOOL____00018) :: defines_var(BOOL____00018);
constraint int_eq_reif(x[15], 1, BOOL____00024);
solve satisfy;