admin管理员组文章数量:1314565
Calling MiniZinc through Python.
First, I created an instance for the basic problem and solved it. Then, through multiple iterations, gradually add other constraints. In these iterations, use the instance.branch()
method to establish branches and add constraints. However, in these iterations, the problem was flattenning from MZN to FZN again and again.
In fact, the basic problem does not change; only some constraints are added.
How can I avoid the flattening time from MZN to FZN for the basic problem each time?
Found similer question in Best practice to solve large number of similar knapsack instances and how to "flatten" model/data manually, just like flatten basic problem and reuse in iterations.
本文标签: minizincAvoid the flatten time from MZN to FZN in iteration solveStack Overflow
版权声明:本文标题:minizinc - Avoid the flatten time from MZN to FZN in iteration solve - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741966890a2407600.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论