pub struct Problem {
    pub fleet: Arc<Fleet>,
    pub jobs: Arc<Jobs>,
    pub locks: Vec<Arc<Lock>>,
    pub goal: Arc<GoalContext>,
    pub activity: Arc<dyn ActivityCost + Send + Sync>,
    pub transport: Arc<dyn TransportCost + Send + Sync>,
    pub extras: Arc<Extras>,
}
Expand description

Defines VRP problem.

Fields

fleet: Arc<Fleet>

Specifies used fleet.

jobs: Arc<Jobs>

Specifies all jobs.

locks: Vec<Arc<Lock>>

Specifies jobs which preassigned to specific vehicles and/or drivers.

goal: Arc<GoalContext>

Specifies optimization goal with the corresponding global/local objectives and invariants.

activity: Arc<dyn ActivityCost + Send + Sync>

Specifies activity costs.

transport: Arc<dyn TransportCost + Send + Sync>

Specifies transport costs.

extras: Arc<Extras>

Specifies index for storing extra parameters of arbitrary type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.