[英]What is the exact meaning of NumConflicts in CP-Sat?
I wonder what the solver.Response.NumConflicts
information means exactly.我想知道solver.Response.NumConflicts
信息究竟意味着什么。 In the documentation(s) I found statements like在文档中,我发现了类似的陈述
Returns the number of conflicts since the creation of the solver.返回自求解器创建以来的冲突数。 ( https://developers.google.com/optimization/reference/python/sat/python/cp_model#numconflicts ) ( https://developers.google.com/optimization/reference/python/sat/python/cp_model#numconflicts )
That does not really satisfies my questioning.这并不能真正满足我的质疑。 Does it tell something about the number of times a constraint has been hurt?它是否说明了约束受到伤害的次数? Or is it some kind of indicator of how exact the solution is?或者它是某种解决方案精确度的指标? Eventhough it is not zero for optimal solutions.尽管对于最佳解决方案它不是零。
And a connected question: What could be the most conclusive info about the solution quality?还有一个相关的问题:关于解决方案质量的最确凿的信息是什么?
Thank you谢谢
See: https://github.com/google/or-tools/issues/1398#issuecomment-508396143请参阅: https : //github.com/google/or-tools/issues/1398#issuecomment-508396143
Num conflicts returns the number of conflicts generated during search. Num冲突返回搜索期间产生的冲突数量。 Roughly, a conflict equals to a dead end in the search tree.粗略地说,冲突等于搜索树中的死胡同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.