pub fn cost_at(problem: &Problem, params: &[f64]) -> f64
CARBS’s declared cost: 1 at the box’s left edge, rising linearly to 2 at its right edge.