1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.

27 lines
393 B
MiniZinc

/***
--- !Test
solvers: [gecode]
options:
all_solutions: true
expected: !Result
status: ALL_SOLUTIONS
solution:
- !Solution
x: !!set {1}
b: true
--- !Test
solvers: [chuffed]
expected: !Result
status: SATISFIED
solution: !Solution
x: !!set {1}
b: true
***/
var set of 1..1: x;
constraint 1 in x;
var bool: b;
constraint b = exists([true | s in x]);
solve satisfy;