Represents a depot (distribution center) in a VRP.
Depots are locations where vehicles start and/or end their routes.
Summary
Types
@type t() :: %ExVrp.Depot{ name: String.t(), reload_cost: non_neg_integer(), service_duration: non_neg_integer(), tw_early: non_neg_integer(), tw_late: non_neg_integer() }
Functions
Creates a new depot.
Required Options
Optional Options
:tw_early- Earliest departure time (default:0):tw_late- Latest return time (default::infinity):service_duration- Time required for loading/unloading at this depot during reloads (default:0):reload_cost- Cost incurred when a vehicle reloads at this depot (default:0):name- Depot name for identification (default:"")
Examples
iex> depot = ExVrp.Depot.new(tw_early: 0, tw_late: 3600)
iex> {depot.tw_early, depot.tw_late}
{0, 3600}