Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::Vehicle::LoadLimit.
Defines a load limit applying to a vehicle, e.g. "this truck may only carry up to 3500 kg". See load_limits.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cost_per_unit_above_soft_max
def cost_per_unit_above_soft_max() -> ::Float
-
(::Float) —
If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load)
- cost_per_unit_above_soft_max. All costs add up and must be in the same unit as Shipment.penalty_cost.
#cost_per_unit_above_soft_max=
def cost_per_unit_above_soft_max=(value) -> ::Float
-
value (::Float) —
If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load)
- cost_per_unit_above_soft_max. All costs add up and must be in the same unit as Shipment.penalty_cost.
-
(::Float) —
If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load)
- cost_per_unit_above_soft_max. All costs add up and must be in the same unit as Shipment.penalty_cost.
#end_load_interval
def end_load_interval() -> ::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval
- (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the end of the route.
#end_load_interval=
def end_load_interval=(value) -> ::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval
- value (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the end of the route.
- (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the end of the route.
#max_load
def max_load() -> ::Integer
- (::Integer) — The maximum acceptable amount of load.
#max_load=
def max_load=(value) -> ::Integer
- value (::Integer) — The maximum acceptable amount of load.
- (::Integer) — The maximum acceptable amount of load.
#soft_max_load
def soft_max_load() -> ::Integer
- (::Integer) — A soft limit of the load. See cost_per_unit_above_soft_max.
#soft_max_load=
def soft_max_load=(value) -> ::Integer
- value (::Integer) — A soft limit of the load. See cost_per_unit_above_soft_max.
- (::Integer) — A soft limit of the load. See cost_per_unit_above_soft_max.
#start_load_interval
def start_load_interval() -> ::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval
- (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the start of the route.
#start_load_interval=
def start_load_interval=(value) -> ::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval
- value (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the start of the route.
- (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the start of the route.