简体   繁体   English

查找 Choco 模型中未满足约束的列表

[英]Finding the list of unsatisfied constraints in the Choco model

choco 中是否有一个函数可以检索模型中未满足的约束列表?

No, there is no such function.不,没有这样的功能。 The search process stops as soon as a constraint is unsatisfiable or as soon as a constraint has emptied the domain of a variable.一旦约束不可满足或约束清空了变量的域,搜索过程就会停止。 Therefore, whenever a fail happens, there is no guarantee whatsoever on the variables' domains, which make things difficult to retrieve the list of unsatisfied constraints.因此,无论何时发生失败,都无法保证变量的域,这使得检索未满足约束的列表变得困难。 The best you can do is to retrieve the list of propagators and check their status using the isEntailed() function.您能做的最好的事情是检索传播者列表并使用 isEntailed() 函数检查它们的状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM