【发布时间】:2013-12-23 09:28:51
【问题描述】:
我在 Alloy 中建模了一个图表转换链。我对求解结果的任何链感兴趣,但有些链是完全相同的。 除了签名实例之间的排列之外,它们是相同的,但实例之间的关系从一个解决方案到另一个解决方案形成完全相同的图。
有没有办法避免这些多余的解决方案? 我在 A4Option 类中看到了一个对称选项,但我并不真正了解如何配置它。
/** This option specifies the amount of symmetry breaking to do (when symmetry breaking isn't explicitly disabled).
*
* <p> If a formula is unsatisfiable, then in general, the higher this value,
* the faster you finish the solving. But if this value is too high, it will instead slow down the solving.
*
* <p> If a formula is satisfiable, then in general, the lower this value, the faster you finish the solving.
* Setting this value to 0 usually gives the fastest solve.
*
* <p> Default value is 20.
*/
如果我输入 0 是否意味着它被禁用?如果我设置更高的值,它会避免对称吗? 如果您将一组原子和这些原子之间的关系视为一个图。 Ans邻接矩阵作为表征矩阵中原子之间的关系。 对称是否意味着 2 个实例具有等效的邻接矩阵?
为了降低求解复杂度,有没有办法向求解器指定我们对某些特定的签名实例排列或关系排列不感兴趣,而是对它们的架构配置感兴趣?
提前致谢。
【问题讨论】: