Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
en:dydaktyka:csp:lab1 [2018/03/11 20:09] msl [Graph Coloring] |
en:dydaktyka:csp:lab1 [2019/03/07 16:12] msl |
- they are implemented using very efficient algorithms, which may take advantage of the problem structure in a better way than the many separate normal constraints. | - they are implemented using very efficient algorithms, which may take advantage of the problem structure in a better way than the many separate normal constraints. |
| |
In order to use a global constraint, first you've to find it in [[http://www.minizinc.org/doc-lib/doc-globals.html | the global constraints' library]]. Then you've to import in in the model, e.g. in order to use ''cumulative'' constraint, you've to add the ''include cumulative.mzn;'' line to the model. | In order to use a global constraint, first you've to find it in [[http://www.minizinc.org/doc-lib/doc-globals.html | the global constraints' library]]. Then you've to import in in the model, e.g. in order to use ''cumulative'' constraint, you've to add the ''include "cumulative.mzn";'' line to the model. |
| |
==== N-Queens + Global Constraints ==== | ==== N-Queens + Global Constraints ==== |