# Class LoadLimit (1.15.0)

1.15.0 (latest) 1.14.0 1.13.0 1.12.0 1.11.2 1.10.0 1.9.1 1.8.5 1.7.0 1.6.0 1.5.0 1.4.3 1.3.2 1.2.0 1.1.3 1.0.1 0.1.1

    LoadLimit(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines a load limit applying to a vehicle, e.g. "this truck may
only carry up to 3500 kg". See
load_limits.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `max_load` | `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. |
| `start_load_interval` | `https://docs.cloud.google.com/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.Vehicle.LoadLimit.Interval` The acceptable load interval of the vehicle at the start of the route. |
| `end_load_interval` | `https://docs.cloud.google.com/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.Vehicle.LoadLimit.Interval` The acceptable load interval of the vehicle at the end of the route. |

## Classes

### Interval

    Interval(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Interval of acceptable load amounts.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>