pub struct TourOrder {}Expand description
Allows to control desired activity order in tours.
Implementations
sourceimpl TourOrder
impl TourOrder
sourcepub fn new_unconstrained(
order_fn: OrderFn,
state_key: i32
) -> (TargetConstraint, TargetObjective)
pub fn new_unconstrained(
order_fn: OrderFn,
state_key: i32
) -> (TargetConstraint, TargetObjective)
Creates instances of unconstrained tour order logic. Unconstrained means that a job with less order can be assigned after a job with larger order in the tour. Violations are counted by the objective.
sourcepub fn new_constrained(
order_fn: OrderFn,
state_key: i32,
constraint_code: i32
) -> (TargetConstraint, TargetObjective)
pub fn new_constrained(
order_fn: OrderFn,
state_key: i32,
constraint_code: i32
) -> (TargetConstraint, TargetObjective)
Creates instances of constrained tour order logic: a job with less order cannot be assigned after a job with larger order in the tour.
Auto Trait Implementations
impl RefUnwindSafe for TourOrder
impl Send for TourOrder
impl Sync for TourOrder
impl Unpin for TourOrder
impl UnwindSafe for TourOrder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more