RcspSolver

Struct RcspSolver 

Source
pub struct RcspSolver<Problem, LabelMeta: Meta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: UserProblem<LabelMeta, NodeWeight, EdgeWeight, BranchFilter>,
{ /* private fields */ }
Expand description

The solver structure holding the user problem and graph

Implementations§

Source§

impl<Problem: UserProblem<LabelMeta, NodeWeight, EdgeWeight, BranchFilter>, LabelMeta: Meta, NodeWeight, EdgeWeight, BranchFilter> RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>

Source

pub fn new(problem: Problem) -> Self

Source

pub fn get_graph(&self) -> &ProblemGraph<NodeWeight, EdgeWeight>

Returns reference to stored problem graph

Source

pub fn get_graph_mut(&mut self) -> &mut ProblemGraph<NodeWeight, EdgeWeight>

Returns mutable reference to stored problem graph

Source

pub fn get_problem_mut(&mut self) -> &mut Problem

Returns mutable reference to stored problem

Source

pub fn get_problem(&self) -> &Problem

Returns reference to stored problem

Source§

impl<Problem: UserProblem<LabelMeta, NodeWeight, EdgeWeight, BranchFilter>, LabelMeta: Meta + InitialLabelGenerator<Problem>, NodeWeight, EdgeWeight, BranchFilter> RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where NodeWeight: Debug + Clone,

Source

pub fn find_paths<const EARLY_EXIT: bool>( &mut self, filters: &[BranchFilter], path_start_cost: f64, ) -> Vec<(f64, FeasiblePath)>

Primary function of solver. Finds RCSP for network and returns non dominated results

Return object is vector of (path cost, path) tuples

Auto Trait Implementations§

§

impl<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter> Freeze for RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: Freeze,

§

impl<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter> RefUnwindSafe for RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: RefUnwindSafe, LabelMeta: RefUnwindSafe, EdgeWeight: RefUnwindSafe, NodeWeight: RefUnwindSafe, BranchFilter: RefUnwindSafe,

§

impl<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter> Send for RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: Send, LabelMeta: Send, EdgeWeight: Send, NodeWeight: Send, BranchFilter: Send,

§

impl<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter> Sync for RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: Sync, LabelMeta: Sync, EdgeWeight: Sync, NodeWeight: Sync, BranchFilter: Sync,

§

impl<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter> Unpin for RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: Unpin, LabelMeta: Unpin, EdgeWeight: Unpin, NodeWeight: Unpin, BranchFilter: Unpin,

§

impl<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter> UnwindSafe for RcspSolver<Problem, LabelMeta, NodeWeight, EdgeWeight, BranchFilter>
where Problem: UnwindSafe, LabelMeta: UnwindSafe, EdgeWeight: UnwindSafe, NodeWeight: UnwindSafe, BranchFilter: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.