Skip to main content

is_pb_symmetry

Function is_pb_symmetry 

Source
pub fn is_pb_symmetry(constraints: &[PbConstraint], perm: &[usize]) -> bool
Expand description

Does the variable permutation perm preserve every constraint? (term(perm[v]) == term(v) for all v — a relabelling that fixes each constraint’s coefficient/sign structure, hence its solution set.)