Debian Codegraph @

tests/spec/unit/on_restart/complete.mzn

raw
1 /***
2 !Test
3 solvers: [gecode, chuffed]
4 options:
5 restart: "constant"
6 restart-base: 100
7 expected: !Result
8 status: OPTIMAL_SOLUTION
9 solution: !Solution
10 x: 3
11 ***/
12 include "experimental/on_restart.mzn";
13 var -1..5: x;
14
15 predicate foo() =
16 (status() != START) -> (x > 2 -> complete());
17
18 solve ::on_restart("foo") ::int_search([x], input_order, indomain_min) maximize abs(x);