Class InjectedSolutionConstraint.Types.ConstraintRelaxation
For a group of vehicles, specifies at what threshold(s) constraints on
visits will be relaxed and to which level. Shipments listed in
the skipped_shipment field are constrained to be skipped; i.e., they
cannot be performed.
Implements
Namespace: Google.Maps.RouteOptimization.V1
Assembly: Google.Maps.RouteOptimization.V1.dll
Syntax
public sealed class InjectedSolutionConstraint.Types.ConstraintRelaxation : IMessage<InjectedSolutionConstraint.Types.ConstraintRelaxation>, IEquatable<InjectedSolutionConstraint.Types.ConstraintRelaxation>, IDeepCloneable<InjectedSolutionConstraint.Types.ConstraintRelaxation>, IBufferMessage, IMessage
Constructors
ConstraintRelaxation()
Declaration
public ConstraintRelaxation()
ConstraintRelaxation(ConstraintRelaxation)
Declaration
public ConstraintRelaxation(InjectedSolutionConstraint.Types.ConstraintRelaxation other)
Parameters
| Type | Name | Description |
|---|---|---|
| InjectedSolutionConstraint.Types.ConstraintRelaxation | other |
Properties
Relaxations
All the visit constraint relaxations that will apply to visits on
routes with vehicles in vehicle_indices.
Declaration
public RepeatedField<InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation> Relaxations { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation> |
VehicleIndices
Specifies the vehicle indices to which the visit constraint
relaxations apply. If empty, this is considered the default and the
relaxations apply to all vehicles that are not specified in other
constraint_relaxations. There can be at most one default, i.e., at
most one constraint relaxation field is allowed empty
vehicle_indices. A vehicle index can only be listed once, even within
several constraint_relaxations.
A vehicle index is mapped the same as
[ShipmentRoute.vehicle_index][google.maps.routeoptimization.v1.ShipmentRoute.vehicle_index],
if interpret_injected_solutions_using_labels is true (see fields
comment).
Declaration
public RepeatedField<int> VehicleIndices { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<int> |