tests/spec/unit/regression/multi_goal_hierarchy_error.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | solvers: [cbc] |
| 4 | expected: !Result |
| 5 | solution: !Solution |
| 6 | ***/ |
| 7 | |
| 8 | % Used to cause internal error due to incorrect detection of multiple goal hierarchies. |
| 9 | |
| 10 | var 1..10: x; |
| 11 | var 1..10: y; |
| 12 | |
| 13 | solve :: int_search([x], input_order, indomain_min) |
| 14 | :: int_search([y], input_order, indomain_max) |
| 15 | satisfy; |