Skip to content

Commit

Permalink
fix(planning): add mis-removed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Shi-Raida committed Dec 11, 2024
1 parent da8ce5b commit 744d539
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions planning/planners/src/encode/symmetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,15 @@ fn add_plan_space_symmetry_breaking(pb: &FiniteProblem, model: &mut Model, encod
// X[1:j-1] >= Y[1:j-1] has been enforced by the previous iteration of the loop
}
}
clause.clear();
if discard_useless_supports {
// enforce that a chronicle be present only if it supports at least one condition
clause.push(!pb.chronicles[*crt_instance].chronicle.presence);
for cond in conditions {
clause.push(supports(*crt_instance, *cond).active);
}
model.enforce(or(clause.as_slice()), []);
}
}
}

Expand Down

0 comments on commit 744d539

Please sign in to comment.