[][src]Trait vrp_core::construction::Quota

pub trait Quota {
    fn is_reached(&self) -> bool;
}

Specifies a computational quota for solving VRP. The main purpose is to allow to stop algorithm in reaction to external events such as user cancellation, timer, etc.

Required methods

fn is_reached(&self) -> bool

Returns true when computation should be stopped.

Loading content...

Implementors

impl Quota for TimeQuota[src]

Loading content...