Negation (cpmpy.transformations.negation)
Transformations dealing with negations.
- cpmpy.transformations.negation.push_down_negation(lst_of_expr, toplevel=True)[source]
Transformation that checks all elements from the list, and pushes down any negation it finds with the recurse_negation() function.
Assumes the input is a list (typically from toplevel_list()) en ensures the output is a toplevel_list if the input was.