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