public sealed class LoadLimit : IMessage<Vehicle.Types.LoadLimit>, IEquatable<Vehicle.Types.LoadLimit>, IDeepCloneable<Vehicle.Types.LoadLimit>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Optimization v1 API class Vehicle.Types.LoadLimit.
Defines a load limit applying to a vehicle, e.g. "this truck may only carry up to 3500 kg". See [load_limits][google.cloud.optimization.v1.Vehicle.load_limits].
Implements
IMessage<Vehicle.Types.LoadLimit>, IEquatable<Vehicle.Types.LoadLimit>, IDeepCloneable<Vehicle.Types.LoadLimit>, IBufferMessage, IMessageNamespace
Google.Cloud.Optimization.V1Assembly
Google.Cloud.Optimization.V1.dll
Constructors
LoadLimit()
public LoadLimit()
LoadLimit(Vehicle.Types.LoadLimit)
public LoadLimit(Vehicle.Types.LoadLimit other)
Parameter | |
---|---|
Name | Description |
other | Vehicle.Types.LoadLimit |
Properties
CostPerUnitAboveSoftMax
public double CostPerUnitAboveSoftMax { get; set; }
If the load ever exceeds [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load] along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]) * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max]. All costs add up and must be in the same unit as [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
Property Value | |
---|---|
Type | Description |
Double |
EndLoadInterval
public Vehicle.Types.LoadLimit.Types.Interval EndLoadInterval { get; set; }
The acceptable load interval of the vehicle at the end of the route.
Property Value | |
---|---|
Type | Description |
Vehicle.Types.LoadLimit.Types.Interval |
HasMaxLoad
public bool HasMaxLoad { get; }
Gets whether the "max_load" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
MaxLoad
public long MaxLoad { get; set; }
The maximum acceptable amount of load.
Property Value | |
---|---|
Type | Description |
Int64 |
SoftMaxLoad
public long SoftMaxLoad { get; set; }
A soft limit of the load. See [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
Property Value | |
---|---|
Type | Description |
Int64 |
StartLoadInterval
public Vehicle.Types.LoadLimit.Types.Interval StartLoadInterval { get; set; }
The acceptable load interval of the vehicle at the start of the route.
Property Value | |
---|---|
Type | Description |
Vehicle.Types.LoadLimit.Types.Interval |