Adding API for AtMostOneConstraint + bugfix for turning off the optimizations
[satune.git] / src / csolver.h
index eba7b3ccf47ffa7abb4dbae45e398591a8fd025c..5ef235d3d8ce9b26032380b30c4cea82c85bd0f2 100644 (file)
@@ -103,6 +103,9 @@ public:
 
        /** This exactly one element of array can be true! (i.e. a1 + a2 + a3 + ... + an = 1)*/
        BooleanEdge applyExactlyOneConstraint (BooleanEdge *array, uint asize);
+       
+       /** This exactly one element of array can be true! (i.e. a1 => !a2 & !a3 & ... & !an)*/
+       BooleanEdge applyAtMostOneConstraint (BooleanEdge *array, uint asize);
 
        /** This function applies a logical operation to the Booleans in its input. */