[][src]Enum vrp_pragmatic::format::problem::Objective

pub enum Objective {
    MinimizeCost,
    MinimizeTours,
    MaximizeTours,
    MinimizeUnassignedJobs {
        breaks: Option<f64>,
    },
    BalanceMaxLoad {
        options: Option<BalanceOptions>,
    },
    BalanceActivities {
        options: Option<BalanceOptions>,
    },
    BalanceDistance {
        options: Option<BalanceOptions>,
    },
    BalanceDuration {
        options: Option<BalanceOptions>,
    },
}

Specifies objective function types.

Variants

MinimizeCost

An objective to minimize total cost.

MinimizeTours

An objective to minimize total tour amount.

MaximizeTours

An objective to maximize total tour amount.

MinimizeUnassignedJobs

An objective to minimize amount of unassigned jobs.

Fields of MinimizeUnassignedJobs

breaks: Option<f64>

A multiplier to increase/decrease break is importance. Default is 1.

BalanceMaxLoad

An objective to balance max load across all tours.

Fields of BalanceMaxLoad

options: Option<BalanceOptions>

A relative load in single tour before balancing takes place.

BalanceActivities

An objective to balance activities across all tours.

Fields of BalanceActivities

options: Option<BalanceOptions>

An options which can be used to specify minimum activity amount in a tour before it considered for balancing.

BalanceDistance

An objective to balance distance across all tours.

Fields of BalanceDistance

options: Option<BalanceOptions>

An options which can be used to specify minimum distance of a tour before it considered for balancing.

BalanceDuration

An objective to balance duration across all tours.

Fields of BalanceDuration

options: Option<BalanceOptions>

An options which can be used to specify minimum duration of a tour before it considered for balancing.

Trait Implementations

impl Clone for Objective[src]

impl Debug for Objective[src]

impl<'de> Deserialize<'de> for Objective[src]

impl Serialize for Objective[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,