| 1 |
/*** |
| 2 |
!Test |
| 3 |
expected: |
| 4 |
- !Result |
| 5 |
solution: !Solution |
| 6 |
x: [5, 5, 5] |
| 7 |
***/ |
| 8 |
|
| 9 |
include "roots.mzn"; |
| 10 |
|
| 11 |
array[0..2] of var 0..1000: x ::add_to_output; |
| 12 |
|
| 13 |
constraint roots(x, {0, 1, 2}, {5}); |
| 14 |
|
| 15 |
solve satisfy; |
| 16 |
|
| 17 |
output [ |
| 18 |
"x = array1d(0..2, ", show(x), ");\n" |
| 19 |
]; |