eomahony / Numberjack

Python Combinatorial Optimisation Platform
http://numberjack.ucc.ie
GNU Lesser General Public License v2.1
157 stars 36 forks source link

MiniZinc Cost Function additions #36

Closed Alexander-Schiendorfer closed 8 years ago

Alexander-Schiendorfer commented 8 years ago

These are the suggested changes for easy cost function support in MiniZinc via Numberjack (and a little test case for the evaluate method of Decomp).

Documentation about the usage can be found at : https://github.com/isse-augsburg/constraint-relationships/blob/gh-pages/images/cost-functions.pdf

Alexander-Schiendorfer commented 8 years ago

I added support for NAry as well, as evidenced in the file https://github.com/isse-augsburg/constraint-relationships/blob/master/source-code/minizinc/tests/costfunctions/nary-cost-function.mzn .

9thbit commented 8 years ago

Looks great, thanks @Alexander-Schiendorfer! :)