tests/spec/unit/output/output_sections_3.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [gecode] |
| 4 | expected: !Result |
| 5 | solution: !Solution |
| 6 | objective: 9 |
| 7 | _output_item: 'x = 10' |
| 8 | ***/ |
| 9 | |
| 10 | var 1..10: objective; |
| 11 | |
| 12 | constraint let { |
| 13 | var 1..10: x; |
| 14 | constraint x > objective; |
| 15 | } in output_to_section("default", "x = \(x)"); |
| 16 | |
| 17 | solve maximize objective; |
| 18 | |
| 19 | output []; |