Struct vrp_core::solver::Telemetry [−][src]
pub struct Telemetry { /* fields omitted */ }Expand description
Provides way to collect metrics and write information into log.
Implementations
impl Telemetry[src]
impl Telemetry[src]pub fn new(mode: TelemetryMode) -> Self[src]
pub fn new(mode: TelemetryMode) -> Self[src]Creates a new instance of Telemetry.
pub fn on_initial(
&mut self,
item_idx: usize,
total_items: usize,
item_time: Timer,
termination_estimate: f64
)[src]
pub fn on_initial(
&mut self,
item_idx: usize,
total_items: usize,
item_time: Timer,
termination_estimate: f64
)[src]Reports initial solution statistics.
pub fn on_generation(
&mut self,
refinement_ctx: &mut RefinementContext,
termination_estimate: f64,
generation_time: Timer,
is_improved: bool
)[src]
pub fn on_generation(
&mut self,
refinement_ctx: &mut RefinementContext,
termination_estimate: f64,
generation_time: Timer,
is_improved: bool
)[src]Reports generation statistics.
pub fn on_result(&mut self, refinement_ctx: &RefinementContext)[src]
pub fn on_result(&mut self, refinement_ctx: &RefinementContext)[src]Reports final statistic.
pub fn get_metrics(self) -> Option<Metrics>[src]
pub fn get_metrics(self) -> Option<Metrics>[src]Gets metrics.
Auto Trait Implementations
impl !RefUnwindSafe for Telemetry
impl !Send for Telemetry
impl !Sync for Telemetry
impl Unpin for Telemetry
impl !UnwindSafe for Telemetry
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,