int
The maximum acceptable amount of load.
This field is a member of oneof_ _max_load.
soft_max_load
int
A soft limit of the load. See
cost_per_unit_above_soft_max.
cost_per_unit_above_soft_max
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class LoadLimit (1.11.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.2 (latest)](/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.11.0](/python/docs/reference/optimization/1.11.0/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.10.0](/python/docs/reference/optimization/1.10.0/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.9.1](/python/docs/reference/optimization/1.9.1/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.8.5](/python/docs/reference/optimization/1.8.5/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.7.0](/python/docs/reference/optimization/1.7.0/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.6.0](/python/docs/reference/optimization/1.6.0/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.5.0](/python/docs/reference/optimization/1.5.0/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.4.3](/python/docs/reference/optimization/1.4.3/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.3.2](/python/docs/reference/optimization/1.3.2/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.2.0](/python/docs/reference/optimization/1.2.0/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.1.3](/python/docs/reference/optimization/1.1.3/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [1.0.1](/python/docs/reference/optimization/1.0.1/google.cloud.optimization_v1.types.Vehicle.LoadLimit)\n- [0.1.1](/python/docs/reference/optimization/0.1.1/google.cloud.optimization_v1.types.Vehicle.LoadLimit) \n\n LoadLimit(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDefines a load limit applying to a vehicle, e.g. \"this truck may\nonly carry up to 3500 kg\". See\nload_limits.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\nClasses\n-------\n\n### Interval\n\n Interval(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nInterval of acceptable load amounts.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]