git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
35 lines
584 B
MiniZinc
35 lines
584 B
MiniZinc
/***
|
|
--- !Test
|
|
type: compile
|
|
solvers: [gecode]
|
|
options:
|
|
-O0: true
|
|
expected: !FlatZinc optimization_0.fzn
|
|
--- !Test
|
|
type: compile
|
|
solvers: [gecode]
|
|
options:
|
|
-O1: true
|
|
expected: !FlatZinc optimization_1.fzn
|
|
--- !Test
|
|
type: compile
|
|
solvers: [gecode]
|
|
options:
|
|
-O2: true
|
|
expected: !FlatZinc optimization_2.fzn
|
|
--- !Test
|
|
type: compile
|
|
solvers: [gecode]
|
|
options:
|
|
-O3: true
|
|
expected: !FlatZinc optimization_3.fzn
|
|
***/
|
|
|
|
var 1..10: x;
|
|
var set of 1..10: y;
|
|
var bool: z;
|
|
|
|
constraint forall (i in y) (i mod 2 = 1);
|
|
constraint x >= 5 <-> x in y;
|
|
constraint x > 2 -> not z;
|
|
constraint z; |