☰
Debian Codegraph
@
2.9.7+dfsg1-1
2.10.0+dfsg1-1
/
/
tests
/
spec
/
unit
/
general
/
indexed_var_comp.mzn
☽
☼
tests/spec/unit/general/indexed_var_comp.mzn
code
plain
raw
MPL-2.0
2014-2025 Monash University and NICTA
debian/copyright
1
/***
2
!Test
3
solvers: [gecode]
4
expected: !Result
5
solution: !Solution
6
x: [1, 2, 3]
7
***/
8
9
var set of 1..3: s;
10
any: x :: output = [i + 1: i | i in s];
11
solve maximize card(s);