Struct vrp_core::models::problem::DynamicActivityCost
source · pub struct DynamicActivityCost { /* private fields */ }Expand description
Provides way to calculate activity costs which might contain reserved time.
Implementations§
source§impl DynamicActivityCost
impl DynamicActivityCost
sourcepub fn new(reserved_times_index: ReservedTimesIndex) -> Result<Self, String>
pub fn new(reserved_times_index: ReservedTimesIndex) -> Result<Self, String>
Creates a new instance of DynamicActivityCost with given reserved time function.
Trait Implementations§
source§impl ActivityCost for DynamicActivityCost
impl ActivityCost for DynamicActivityCost
source§fn estimate_departure(
&self,
route: &Route,
activity: &Activity,
arrival: Timestamp
) -> Timestamp
fn estimate_departure(
&self,
route: &Route,
activity: &Activity,
arrival: Timestamp
) -> Timestamp
Estimates departure time for activity and actor at given arrival time.