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
Returns
- (::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
Parameter
- 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.
Returns
- (::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
Returns
- (::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
Parameter
- value (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the end of the route.
Returns
- (::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
Returns
- (::Integer) — The maximum acceptable amount of load.
#max_load=
def max_load=(value) -> ::Integer
Parameter
- value (::Integer) — The maximum acceptable amount of load.
Returns
- (::Integer) — The maximum acceptable amount of load.
#soft_max_load
def soft_max_load() -> ::Integer
Returns
- (::Integer) — A soft limit of the load. See cost_per_unit_above_soft_max.
#soft_max_load=
def soft_max_load=(value) -> ::Integer
Parameter
- value (::Integer) — A soft limit of the load. See cost_per_unit_above_soft_max.
Returns
- (::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
Returns
- (::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
Parameter
- value (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the start of the route.
Returns
- (::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval) — The acceptable load interval of the vehicle at the start of the route.