[][src]Trait vrp_core::models::problem::ActivityCost

pub trait ActivityCost {
    pub fn cost(
        &self,
        actor: &Actor,
        activity: &Activity,
        arrival: Timestamp
    ) -> Cost { ... }
pub fn duration(
        &self,
        _actor: &Actor,
        activity: &Activity,
        _arrival: Timestamp
    ) -> Cost { ... } }

Provides the way to get cost information for specific activities done by specific actor.

Provided methods

pub fn cost(
    &self,
    actor: &Actor,
    activity: &Activity,
    arrival: Timestamp
) -> Cost
[src]

Returns cost to perform activity.

pub fn duration(
    &self,
    _actor: &Actor,
    activity: &Activity,
    _arrival: Timestamp
) -> Cost
[src]

Returns operation time spent to perform activity.

Loading content...

Implementors

impl ActivityCost for SimpleActivityCost[src]

Loading content...