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.

15 lines
271 B
MiniZinc

/***
!Test
expected:
- !Result
solution: !Solution
len: 1
***/
array[1..2] of var bool: x = [true, _];
var int: len ::add_to_output;
constraint len = let {
array[int] of var bool: x_fixed = [x[i] | i in index_set(x) where is_fixed(x[i])];
} in length(x_fixed);