Index
MiddleMileOptimization
(interface)AnnotatedPathSegment
(message)CommitPathRequest
(message)CommitPathRequest.IncompletePathToCommit
(message)CommitPathRequest.PathToCommit
(message)CreateHubRequest
(message)CreateLineRequest
(message)CreateLineRotationRequest
(message)CreateNetworkRequest
(message)CreateVehicleRequest
(message)CrossDockingCapacity
(message)CrossDockingTime
(message)DateTimeRange
(message)DeleteHubRequest
(message)DeleteLineRequest
(message)DeleteLineRotationRequest
(message)DeleteNetworkRequest
(message)DeleteShipmentRequest
(message)DeleteVehicleRequest
(message)DistanceMatrixEntry
(message)EarlinessTardiness
(message)Function1D
(message)GeneratedLineAndRotation
(message)GetHubRequest
(message)GetLineRequest
(message)GetLineRotationRequest
(message)GetNetworkRequest
(message)GetShipmentRequest
(message)GetVehicleRequest
(message)Hub
(message)IntegerRange
(message)Line
(message)LineRotation
(message)ListHubsRequest
(message)ListHubsResponse
(message)ListLineRotationsRequest
(message)ListLineRotationsResponse
(message)ListLinesRequest
(message)ListLinesResponse
(message)ListNetworksRequest
(message)ListNetworksResponse
(message)ListPathsRequest
(message)ListPathsResponse
(message)ListShipmentsRequest
(message)ListShipmentsResponse
(message)ListVehiclesRequest
(message)ListVehiclesResponse
(message)MakeHubAvailableRequest
(message)MakeHubAvailableResponse
(message)MakeHubUnavailableRequest
(message)MakeHubUnavailableResponse
(message)MakeLineAvailableRequest
(message)MakeLineAvailableResponse
(message)MakeLineUnavailableRequest
(message)MakeLineUnavailableResponse
(message)MakeVehicleAvailableRequest
(message)MakeVehicleAvailableResponse
(message)MakeVehicleUnavailableRequest
(message)MakeVehicleUnavailableResponse
(message)Network
(message)Path
(message)PathSegment
(message)PieceWiseAffineFunction
(message)PieceWiseAffineSegment
(message)PricingStrategy
(message)RouteShipmentRequest
(message)RouteShipmentResponse
(message)SeparableNDFunction
(message)Shipment
(message)UpdateHubRequest
(message)UpdateLineRequest
(message)UpdateLineRotationRequest
(message)UpdateNetworkRequest
(message)UpdatePathRequest
(message)UpdateVehicleRequest
(message)ValueDimension
(message)Vehicle
(message)Vehicle.VehiclePositionConstraint
(message)
MiddleMileOptimization
Service to manage a logistics network and route shipments inside. This protocol is stateless (messages are independent), although the service behind it is highly stateful (receiving a message may drastically change replies for many methods, like routing a shipment may change the routing of other shipments).
CommitPath |
---|
Commits the path of a shipment, indicating that it cannot be changed in the future, even by the user, save for force majeure/act of God indicated by the MakeVehicleUnavailable, MakeHubUnavailable, MakeLineUnavailable methods. This method is not used to tag a particular revision of a path. |
CreateHub |
---|
Creates a Hub. |
CreateLine |
---|
Creates a Line. |
CreateLineRotation |
---|
Creates a LineRotation. |
CreateNetwork |
---|
Creates a Network. |
CreateVehicle |
---|
Creates a Vehicle. |
DeleteHub |
---|
Deletes a Hub. |
DeleteLine |
---|
Deletes a Line. |
DeleteLineRotation |
---|
Deletes a LineRotation. |
DeleteNetwork |
---|
Deletes a Network. |
DeleteShipment |
---|
Deletes a Shipment. |
DeleteVehicle |
---|
Deletes a Vehicle. |
GetHub |
---|
Gets the details of a Hub. |
GetLine |
---|
Gets the details of a Line. |
GetLineRotation |
---|
Gets the details of a LineRotation. |
GetNetwork |
---|
Gets the details of a Network. |
GetShipment |
---|
Gets the details of a Shipment. |
GetVehicle |
---|
Gets the details of a Vehicle. |
ListHubs |
---|
Lists the Hubs. |
ListLineRotations |
---|
Lists the LineRotations. |
ListLines |
---|
Lists the Lines. |
ListNetworks |
---|
Lists the Network. |
ListPaths |
---|
Returns all the paths that are currently available. This method is idempotent and has no side effect. |
ListShipments |
---|
Lists the Shipments. |
ListVehicles |
---|
Lists the Vehicles. |
MakeHubAvailable |
---|
Makes a hub available. |
MakeLineAvailable |
---|
Makes a line available. |
MakeVehicleAvailable |
---|
Makes a vehicle available. |
RouteShipment |
---|
Route a new shipment. Akin to creation, this operation implies a state change. |
UpdateHub |
---|
Updates a Hub. |
UpdateLine |
---|
Updates a Line. |
UpdateLineRotation |
---|
Updates a LineRotation. |
UpdateNetwork |
---|
Updates a Network. |
UpdatePath |
---|
Changes the path of a shipment: instead of using the service-computed one, the state will contain the one set by the user through this call. |
UpdateVehicle |
---|
Updates a Vehicle. |
AnnotatedPathSegment
Represents a part of a path with more redundant information that can be computed based on the contained PathSegment and the Network. These messages are typically returned by the API server.
Fields | |
---|---|
segment |
Required. Segment being annotated. |
arrival_ |
Output only. Arrival time of this segment. |
departure_ |
Output only. Departure time of this segment. |
is_ |
Output only. Whether the API customer has decided to commit this part of the path. |
segment_ |
Output only. Constant cost for this segment. |
segment_ |
Output only. One entry per dimension. |
segment_ |
Output only. Cost due to the line rotation: departure. |
segment_ |
Output only. Cost due to the line rotation: arrival. |
CommitPathRequest
The request message for CommitPath
method.
Fields | |
---|---|
name |
Required. The name of the shipment whose path must be committed. Format: "networks/{network}/shipments/{shipment}" |
Union field path_to_commit . The path or parts of the path that should be committed. path_to_commit can be only one of the following: |
|
complete_ |
The segments of a path from a source to a destination. |
segments |
A subset of the segments of a path from a source to a destination. |
IncompletePathToCommit
Part of path being committed, i.e. some segments between the source and the destination.
Fields | |
---|---|
segments[] |
Required. A subset of the segments of a path from a source to a destination. |
PathToCommit
Full path being committed, from source to destination.
Fields | |
---|---|
segments[] |
Required. Segments must be in order, from a source to a destination. |
CreateHubRequest
The request message for CreateHub
method.
Fields | |
---|---|
parent |
Required. The parent resource where this hub will be created. Format: "networks/{network}" |
hub_ |
Required. Identifier of the hub to create. |
hub |
Required. The hub to create. |
CreateLineRequest
The request message for CreateLine
method.
Fields | |
---|---|
parent |
Required. The parent resource where this line will be created. Format: "networks/{network}" |
line_ |
Required. Identifier of the line to create. |
line |
Required. The line to create. |
CreateLineRotationRequest
The request message for CreateLineRotation
method.
Fields | |
---|---|
parent |
Required. The parent resource where this line rotation will be created. Format: "networks/{network}/lines/{line}" |
line_ |
Required. Identifier of the line rotation to create. |
line_ |
Required. The line rotation to create. |
CreateNetworkRequest
The request message for CreateNetwork
method.
Fields | |
---|---|
network_ |
Required. Identifier of the network to create. |
network |
Required. The network to create. |
CreateVehicleRequest
The request message for CreateVehicle
method.
Fields | |
---|---|
parent |
Required. The parent resource where this vehicle will be created. Format: "networks/{network}" |
vehicle_ |
Required. Identifier of the vehicle to create. |
vehicle |
Required. The vehicle to create. |
CrossDockingCapacity
Overall cross-docking capacity for a hub.
Fields | |
---|---|
capacity_ |
Optional. Cross-docking capacity for each dimension. |
CrossDockingTime
Overall cross-docking time for a hub.
Fields | |
---|---|
time_ |
Optional. Constant time for a cross-docking operation. |
time |
Optional. Separability is a simplifying assumption. |
DateTimeRange
Range of times between two DateTime. For a pointwise date time, use start == end.
google/type/interval.proto serves a similar purpose, but with physical time (we only care about civil time).
Fields | |
---|---|
first_ |
Start of the range. |
last_ |
End of the range |
DeleteHubRequest
The request message for DeleteHub
method.
Fields | |
---|---|
name |
Required. The name of the hub to delete. Format: "networks/{network}/hubs/{hub}" |
DeleteLineRequest
The request message for DeleteLine
method.
Fields | |
---|---|
name |
Required. The name of the line to delete. Format: "networks/{network}/lines/{line}" |
force |
Optional. If set to true, delete the children resources. |
DeleteLineRotationRequest
The request message for DeleteLineRotation
method.
Fields | |
---|---|
name |
Required. The name of the line rotation to delete. Format: "networks/{network}/lines/{line}/rotations/{rotation}" |
DeleteNetworkRequest
The request message for DeleteNetwork
method.
Fields | |
---|---|
name |
Required. The name of the network to delete. Format: "networks/{network}" |
force |
Optional. If set to true, delete the children resources. |
DeleteShipmentRequest
The request message for DeleteShipment
method.
Fields | |
---|---|
name |
Required. The name of the shipment to delete. Format: "networks/{network}/shipments/{shipment}" |
DeleteVehicleRequest
The request message for DeleteVehicle
method.
Fields | |
---|---|
name |
Required. The name of the vehicle to delete. Format: "networks/{network}/vehicles/{vehicle}" |
DistanceMatrixEntry
Distance between a source hub and a destination hub.
Fields | |
---|---|
source_ |
Required. Source hub. |
destination_ |
Required. Destination hub. |
weights[] |
Required. Distance between the hubs, measured in several dimensions. |
EarlinessTardiness
Cost functions due to a shipment arriving/departing sooner or later than required (soft constraints).
Fields | |
---|---|
maximum_ |
Optional. Maximum allowable earliness. Useful only with costs. |
maximum_ |
Optional. Maximum allowable tardiness. Useful only with costs. |
earliness_ |
Optional. Cost of earliness. Unset iff no cost for earliness. |
tardiness_ |
Optional. Cost of tardiness. Unset iff no cost for tardiness. |
Function1D
Function of one argument.
Fields | |
---|---|
Union field function . The unity of the argument of the function is supposed to be: - if a weight: kg - if a time: min - if a number of pallets: 1 function can be only one of the following: |
|
constant |
The function is a constant. |
pwl |
The function is piecewise linear. |
GeneratedLineAndRotation
One rotation of a line that is generated by this API and not the API customer. It is inherently less constrained, and could use any vehicle (unless the API customer decides otherwise in subsequent calls).
Fields | |
---|---|
arrival_ |
Output only. Map between hub IDs and times. This map is supposed to have the same keys (minus the source hub, with no arrival time). |
departure_ |
Output only. Map between hub IDs and times. This map is supposed to have the same keys (minus the destination hub, with no departure time). |
GetHubRequest
The request message for GetHub
method.
Fields | |
---|---|
name |
Required. The name of the hub to retrieve. Format: "networks/{network}/hubs/{hub}" |
GetLineRequest
The request message for GetLine
method.
Fields | |
---|---|
name |
Required. The name of the network to retrieve. Format: "networks/{network}/lines/{line}" |
GetLineRotationRequest
The request message for GetLineRotation
method.
Fields | |
---|---|
name |
Required. The name of the line rotation to retrieve. Format: "networks/{network}/lines/{line}/rotations/{rotation}" |
GetNetworkRequest
The request message for GetNetwork
method.
Fields | |
---|---|
name |
Required. The name of the network to retrieve. Format: "networks/{network}" |
GetShipmentRequest
The request message for GetShipment
method.
Fields | |
---|---|
name |
Required. The name of the shipment to retrieve. Format: "networks/{network}/shipments/{shipment}" |
GetVehicleRequest
The request message for GetVehicle
method.
Fields | |
---|---|
name |
Required. The name of the vehicle to retrieve. Format: "networks/{network}/vehicles/{vehicle}" |
Hub
Shipments must be brought from one hub to another one.
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
position |
Optional. Position to compute real-world paths. |
opening_ |
Required. Opening times. For now, use a very rough representation: one entry each time the hub opens (if its workers have a lunch break and no one works at that time, there will be two entries for that day). |
cross_ |
Optional. Capacity of the complete hub. |
cross_ |
Optional. Time to perform one cross-docking operation (per vehicle). |
IntegerRange
Range of integers.
Fields | |
---|---|
start_ |
Interval open if unset. |
end_ |
Interval open if unset. |
Line
A line that is being operated at a given frequency.
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
hub_ |
Required. List of hubs that this line calls at, in the order vehicles stop at them. |
LineRotation
A vehicle starts operating this line at a particular time.
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
arrival_ |
Optional. Range where departure is allowed without cost (i.e., if not pointwise, the actual arrival times are decided by the system). This map is supposed to have the same keys (minus the source hub, with no arrival time). |
departure_ |
Optional. Range where arrival is allowed without cost (i.e., if not pointwise, the actual departure times are decided by the system). This map is supposed to have the same keys (minus the destination hub, with no departure time). |
departure_ |
Optional. Earliness/tardiness costs and bounds for departure. This maps is supposed to have the same keys (minus the destination hub, with no departure time). |
arrival_ |
Optional. Earliness/tardiness costs and bounds for arrival. This maps is supposed to have the same keys (minus the source hub, with no arrival time). |
vehicles[] |
Optional. List of vehicles that could be doing this line rotation (i.e. allow list). If number_vehicles reduces to one value corresponding to the number of vehicles, all those vehicles will be assigned to the line rotation. If no vehicles, all are considered to be available. |
fixed_ |
Optional. Cost of having any vehicle doing this line, regardless of vehicle (driver, maintenance, etc.). |
maximum_ |
Optional. Maximum number of vehicles that can be assigned to this rotation. If unset: no limit in terms of vehicles for this rotation. Otherwise, upper bound on the number of vehicles that can be allocated to this rotation (among the allow list |
ListHubsRequest
The request message for ListHubs
method.
Fields | |
---|---|
parent |
Required. The parent, which owns this collection of hubs. Format: "networks/{network}" |
page_ |
Optional. The maximum number of hubs to return. The service may return fewer than this value. If unspecified, at most 50 hubs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListHubsResponse
The response message for ListHubs
method.
Fields | |
---|---|
hubs[] |
The hubs from the specified network. |
next_ |
A token, which can be sent as |
ListLineRotationsRequest
The request message for ListLineRotations
method.
Fields | |
---|---|
parent |
Required. The parent, which owns this collection of line rotations. Format: "networks/{network}/lines/{line}" |
page_ |
Optional. The maximum number of line rotations to return. The service may return fewer than this value. If unspecified, at most 50 LineRotations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListLineRotationsResponse
The response message for ListLineRotations
method.
Fields | |
---|---|
line_ |
The line rotations from the specified network and line. |
next_ |
A token, which can be sent as |
ListLinesRequest
The request message for ListLines
method.
Fields | |
---|---|
parent |
Required. The parent, which owns this collection of lines. Format: "networks/{network}" |
page_ |
Optional. The maximum number of lines to return. The service may return fewer than this value. If unspecified, at most 50 lines will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListLinesResponse
The response message for ListLines
method.
Fields | |
---|---|
lines[] |
The lines from the specified network. |
next_ |
A token, which can be sent as |
ListNetworksRequest
The request message for ListNetworks
method.
Fields | |
---|---|
page_ |
Optional. The maximum number of networks to return. The service may return fewer than this value. If unspecified, at most 50 networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListNetworksResponse
The response message for ListNetworks
method.
Fields | |
---|---|
networks[] |
The list of networks. |
next_ |
A token, which can be sent as |
ListPathsRequest
The request message for ListPaths
method.
Fields | |
---|---|
parent |
Required. The name of the network for which paths must be sent. Format: "networks/{network}" |
page_ |
Optional. The maximum number of networks to return. The service may return fewer than this value. If unspecified, at most 50 networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListPathsResponse
The response message for ListPaths
method.
Fields | |
---|---|
paths[] |
The list of paths. |
next_ |
A token, which can be sent as |
ListShipmentsRequest
The request message for ListShipments
method.
Fields | |
---|---|
parent |
Required. The parent, which owns this collection of shipments. Format: "networks/{network}" |
page_ |
Optional. The maximum number of shipments to return. The service may return fewer than this value. If unspecified, at most 50 shipments will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListShipmentsResponse
The response message for ListShipments
method.
Fields | |
---|---|
shipments[] |
The shipments from the specified network. |
next_ |
A token, which can be sent as |
ListVehiclesRequest
The request message for ListVehicles
method.
Fields | |
---|---|
parent |
Required. The parent, which owns this collection of vehicles. Format: "networks/{network}" |
page_ |
Optional. The maximum number of vehicles to return. The service may return fewer than this value. If unspecified, at most 50 vehicles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
page_ |
Optional. A page token, received from a previous When paginating, all other parameters provided to |
ListVehiclesResponse
The response message for ListVehicles
method.
Fields | |
---|---|
vehicles[] |
The vehicles from the specified network. |
next_ |
A token, which can be sent as |
MakeHubAvailableRequest
The request message for MakeHubAvailable
method.
Fields | |
---|---|
name |
Required. The name of the hub to make available. Format: "networks/{network}/hubs/{hub}" |
availability_ |
Required. The periods where availability will start. They must be points in time in the future. If this field is absent, availability starts when the message is received. |
MakeHubAvailableResponse
The response message for MakeHubAvailable
method.
Fields | |
---|---|
name |
The name of the hub whose unavailability was updated. Format: "networks/{network}/hubs/{hub}" |
path[] |
The paths that were updated. |
MakeLineAvailableRequest
The request message for MakeHubAvailable
method.
Fields | |
---|---|
name |
Required. The name of the line to make available. Format: "networks/{network}/lines/{line}" |
availability_ |
Required. The periods where availability will start. They must be points in time in the future. If this field is absent, availability starts when the message is received. |
MakeLineAvailableResponse
The response message for MakeLineAvailable
method.
Fields | |
---|---|
name |
The name of the line whose unavailability was updated. Format: "networks/{network}/lines/{line}" |
path[] |
The paths that were updated. |
MakeVehicleAvailableRequest
The request message for MakeVehicleAvailable
method.
Fields | |
---|---|
name |
Required. The name of the vehicle to make available. Format: "networks/{network}/vehicle/{vehicle}" |
availability_ |
Required. The periods where availability will start. They must be points in time in the future. If this field is absent, availability starts when the message is received. |
MakeVehicleAvailableResponse
The response message for MakeVehicleAvailable
method.
Fields | |
---|---|
name |
The name of the vehicle whose availability was updated. Format: "networks/{network}/vehicles/{vehicle}" |
path[] |
The paths that were updated. |
Network
Describes the full existing network that can be used. A given API customer might have several networks (e.g., the main network and a possible future modification to evaluate).
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
dimensions[] |
Distance, weight, pallets, etc., plus scaling (to map floats to integers). |
pricing |
Optional. Price to be paid by the sender for shipping a shipment that does not require a dedicated line. |
currency_ |
Optional. Single monetary unit used throughout the network. A given API customer can have several different units for different networks; a network is only allowed to have one monetary unit. The unit must be encoded in ISO 4217. |
time_ |
Optional. Time discretization. Decisions are output with this precision in time. Internally, state is kept with this precision. |
distance_ |
Optional. Distance matrix (represented a list of weighted directed edges). |
Path
Path for a shipment within the network.
Fields | |
---|---|
shipment |
Required. Shipment whose path is being described. |
segments[] |
Required. Segments of the path. |
departure_ |
Output only. Actual departure time of the shipment. |
arrival_ |
Output only. Actual arrival time of the shipment. |
incurred_ |
Output only. Penalties due to soft constraints not respected. |
cost_ |
Output only. Constant cost for this shipment. |
cost |
Output only. Cost by components. |
PathSegment
Represents a part of a path, either sent by the API customer to the API server (e.g., state change) or by the API server to the API customer (e.g., routing a shipment).
Fields | |
---|---|
source_ |
Required. Source of the segment. |
destination_ |
Required. Destination of the segment. |
line |
Required. Line being followed for this segment. |
line_ |
Required. Rotation being followed for this segment. |
vehicle |
Required. Vehicle followed by this segment. |
PieceWiseAffineFunction
Piecewise-linear function, limited to one argument. Design similar to https://github.com/google/or-tools/blob/stable/ortools/util/piecewise_linear_function.h
Fields | |
---|---|
segments[] |
Linear segments of the function. |
PieceWiseAffineSegment
One segment of a piecewise-linear function.
Fields | |
---|---|
start_ |
Beginning of the segment: x. |
start_ |
Beginning of the segment: y. |
end_ |
End of the segment: x. |
end_ |
End of the segment: y. |
PricingStrategy
A pricing strategy.
Fields | |
---|---|
Union field pricing_strategy . A pricing strategy. pricing_strategy can be only one of the following: |
|
separable |
The pricing strategy is a separable function of several variables. |
RouteShipmentRequest
The request message for RouteShipment
method.
Fields | |
---|---|
parent |
Required. The parent, the network within which the shipment must be routed. Format: "networks/{network}" |
shipment |
Required. The shipment to route. |
RouteShipmentResponse
The response message for RouteShipment
method.
Fields | |
---|---|
shipment |
The shipment that was just created. |
paths[] |
The paths that were changed due to routing the shipment. This field includes at least one entry, the path for the shipment that had to be routed. It may contain more paths for other shipments, reflecting internal state changes. |
lines[] |
The line rotations that were created while routing the shipment. It may be empty or contain rotations for other shipments, reflecting internal state changes. |
SeparableNDFunction
Function of N arguments expressed as a sum of functions of one argument.
Fields | |
---|---|
components |
Components of the function, with one entry per argument/dimension. |
constant_ |
Constant part of the function. |
Shipment
Shipment to perform.
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
source_ |
Required. Hub at which the shipment is made available. |
destination_ |
Required. Hub to which the shipment must be delivered. |
departure_ |
Required. Departure time. |
arrival_ |
Required. Expected arrival time (i.e. soft constraint). |
arrival_ |
Optional. SLAs indicate that this time may be exceeded with some penalty. (If later than the maximum, the package is no more useful.) The penalty is given by a function of the delay (in minutes). |
size[] |
Optional. Used with vehicle and hub capacities. |
revenue |
Optional. Revenue from this package (only used to compute the reward), i.e. price paid by the paying party. If unset, revenue is computed by the system (depending on whether a new line is generated for this shipment or not). |
UpdateHubRequest
The request message for UpdateHub
method.
Fields | |
---|---|
hub |
Required. The hub to update. The hub's |
update_ |
Optional. The list of fields to update. |
UpdateLineRequest
The request message for UpdateLine
method.
Fields | |
---|---|
line |
Required. The line to update. The line's |
update_ |
Optional. The list of fields to update. |
UpdateLineRotationRequest
The request message for UpdateLineRotation
method.
Fields | |
---|---|
line_ |
Required. The network to update. The rotation's |
update_ |
Optional. The list of fields to update. |
UpdateNetworkRequest
The request message for UpdateNetwork
method.
Fields | |
---|---|
network |
Required. The network to update. The network's |
update_ |
Optional. The list of fields to update. |
UpdatePathRequest
The request message for UpdatePath
method.
Fields | |
---|---|
path |
Required. The new path for the shipment. |
UpdateVehicleRequest
The request message for UpdateVehicle
method.
Fields | |
---|---|
vehicle |
Required. The vehicle to update. The vehicle's |
update_ |
Optional. The list of fields to update. |
ValueDimension
A value along one predefined dimension. The field value
must be set to the corresponding type of the dimension
.
Fields | |
---|---|
value |
Optional. Value. |
dimension |
Required. Dimension. |
Vehicle
No name, it is stored as a map key within the Network.
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
capacities[] |
Optional. Vehicle characteristics. |
cost |
Required. Cost for using the vehicle. These are functions of one argument: the distance the vehicle travels, the weight the vehicle transports, the number of pallets the vehicle transports. These functions account for maintenance, fuel, and handling costs. These cost may include an upfront cost (paid once the vehicle is used, mostly useful for subcontracting). |
pricing |
Optional. Price to be paid by the paying party, only if the vehicle is being used in a generated line (i.e. not part of the input network). |
allowed_ |
Required. Whether this vehicle can be used for generated lines. If set to |
vehicle_ |
Optional. Forced positions for the current vehicle, along with times. For instance, use entries to model the fact that a vehicle that starts or ends at a given hub. |
VehiclePositionConstraint
Constraint on the position of a vehicle.
Fields | |
---|---|
time |
Time of the constraint. |
hub_ |
Hub of the constraint. |