forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
among_diff_0.fzn
25 lines (25 loc) · 1.72 KB
/
among_diff_0.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
var bool: BOOL____00001 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00003 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00005 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00007 :: is_defined_var :: var_is_introduced;
var bool: BOOL____00009 :: is_defined_var :: var_is_introduced;
var 0..1: INT____00002 :: is_defined_var :: var_is_introduced;
var 0..1: INT____00004 :: is_defined_var :: var_is_introduced;
var 0..1: INT____00006 :: is_defined_var :: var_is_introduced;
var 0..1: INT____00008 :: is_defined_var :: var_is_introduced;
var 0..1: INT____00010 :: is_defined_var :: var_is_introduced;
var 0..5: INT____00011 :: is_defined_var :: var_is_introduced;
var 0..5: nvar :: output_var = INT____00011;
array [1..5] of var 0..5: x :: output_array([1..5]);
constraint bool2int(BOOL____00001, INT____00002) :: defines_var(INT____00002);
constraint bool2int(BOOL____00003, INT____00004) :: defines_var(INT____00004);
constraint bool2int(BOOL____00005, INT____00006) :: defines_var(INT____00006);
constraint bool2int(BOOL____00007, INT____00008) :: defines_var(INT____00008);
constraint bool2int(BOOL____00009, INT____00010) :: defines_var(INT____00010);
constraint int_lin_eq([-1, 1, 1, 1, 1, 1], [INT____00011, INT____00002, INT____00004, INT____00006, INT____00008, INT____00010], 0) :: defines_var(INT____00011);
constraint int_ne_reif(x[1], 0, BOOL____00001) :: defines_var(BOOL____00001);
constraint int_ne_reif(x[2], 0, BOOL____00003) :: defines_var(BOOL____00003);
constraint int_ne_reif(x[3], 0, BOOL____00005) :: defines_var(BOOL____00005);
constraint int_ne_reif(x[4], 0, BOOL____00007) :: defines_var(BOOL____00007);
constraint int_ne_reif(x[5], 0, BOOL____00009) :: defines_var(BOOL____00009);
solve satisfy;