MiniZinc “cannot determine bounds”

不羁的心 提交于 2019-12-12 06:06:10

问题


Writing my first non-trivial MiniZinc app, I keep running into the error "cannot determine bounds". How does one generally resolve this error?


回答1:


In general “cannot determine bounds” means that the solver cannot determine the bounds (the domain) of a decision variable.

Using "var int" as the domain of a decision variable should be avoided if possible, since it will probably slow down the solving process. There are times where the solver can figure out the domain, e.g. in cases likes

% ...
var int: z = sum(x);

when "x" have declared domains. But, as a rule, try to define the domains.



来源:https://stackoverflow.com/questions/28381721/minizinc-cannot-determine-bounds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!