Skip to content

Commit

Permalink
canonical_comparison after flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimosts committed Oct 2, 2023
1 parent e432e27 commit fc4c917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/solvers/choco.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ def transform(self, cpm_expr):
supported_reified = {"alldifferent", "alldifferent_except0", "allequal",
"table", "InDomain", "cumulative", "circuit", "gcc", "inverse"}
cpm_cons = decompose_in_tree(cpm_cons, supported, supported_reified)
cpm_cons = canonical_comparison(cpm_cons)
cpm_cons = flatten_constraint(cpm_cons) # flat normal form
cpm_cons = canonical_comparison(cpm_cons)
cpm_cons = only_numexpr_equality(cpm_cons, supported=frozenset(["sum", "wsum", "sub"])) # support >, <, !=
cpm_cons = reify_rewrite(cpm_cons, supported=supported_reified | {"sum", "wsum"}) # constraints that support reification
cpm_cons = only_bv_reifies(cpm_cons)
Expand Down

0 comments on commit fc4c917

Please sign in to comment.