style: apply rustfmt drift across the crate

This commit is contained in:
2026-05-05 11:40:14 -06:00
parent 84cee3f29e
commit 4a59041d1a
60 changed files with 1520 additions and 608 deletions
+8 -2
View File
@@ -18,12 +18,18 @@ pub struct Evaluation {
impl Evaluation {
/// Build a feasible evaluation from objective values.
pub fn new(objectives: Vec<f64>) -> Self {
Self { objectives, constraint_violation: 0.0 }
Self {
objectives,
constraint_violation: 0.0,
}
}
/// Build an evaluation with a known total constraint violation.
pub fn constrained(objectives: Vec<f64>, constraint_violation: f64) -> Self {
Self { objectives, constraint_violation }
Self {
objectives,
constraint_violation,
}
}
/// Returns `true` when `constraint_violation <= 0.0`.