pub struct LagrangianRoute {
pub path: Vec<usize>,
pub edges: Vec<usize>,
pub cost: f64,
pub resource: f64,
pub lower_bound: f64,
pub lambda: f64,
pub iterations: usize,
}Expand description
Outcome of the Lagrangian constrained-shortest-path solver: a feasible
path, its true cost/resource, the best dual lower bound on the optimal
cost (cost == lower_bound proves optimality), the multiplier that
produced it and the number of Dijkstra runs spent.
Fields§
§path: Vec<usize>§edges: Vec<usize>§cost: f64§resource: f64§lower_bound: f64§lambda: f64§iterations: usizeAuto Trait Implementations§
impl Freeze for LagrangianRoute
impl RefUnwindSafe for LagrangianRoute
impl Send for LagrangianRoute
impl Sync for LagrangianRoute
impl Unpin for LagrangianRoute
impl UnsafeUnpin for LagrangianRoute
impl UnwindSafe for LagrangianRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more