forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
and.fzn
21 lines (21 loc) · 1.25 KB
/
and.fzn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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____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;
array [1..3] of var 0..1: x :: output_array([1..3]);
var 0..1: X____00001 = x[3];
var 0..1: y :: output_var;
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 int_eq(1, x[1]);
constraint int_eq(1, x[2]);
constraint int_eq_reif(y, 1, BOOL____00009);
constraint int_eq_reif(x[1], 1, BOOL____00003) :: defines_var(BOOL____00003);
constraint int_eq_reif(x[2], 1, BOOL____00005) :: defines_var(BOOL____00005);
constraint int_eq_reif(x[3], 1, BOOL____00007) :: defines_var(BOOL____00007);
constraint int_lin_eq_reif([-1, -1, -1], [INT____00004, INT____00006, INT____00008], -3, BOOL____00009) :: defines_var(BOOL____00009);
solve satisfy;