Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:我有一些变量:A,B,C,D 和一个条件:在 [A,B,C,D] 列表中必须至少有两倍的数字 2。我只能使用global_cardinality/2组合约束.
好吧,这是一个相当愚蠢的问题。解决方案例如:global_cardinality(VarList, [1-_,2-M]), M >= 2。所以我们对 VarList 有多少个 1 没有任何限制,但我们给出了数字的个数2,即M,令M大于2。