public sealed class InjectedSolutionConstraint : IMessage<InjectedSolutionConstraint>, IEquatable<InjectedSolutionConstraint>, IDeepCloneable<InjectedSolutionConstraint>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Optimization v1 API class InjectedSolutionConstraint.
Solution injected in the request including information about which visits must be constrained and how they must be constrained.
Implements
IMessageInjectedSolutionConstraint, IEquatableInjectedSolutionConstraint, IDeepCloneableInjectedSolutionConstraint, IBufferMessage, IMessageNamespace
Google.Cloud.Optimization.V1Assembly
Google.Cloud.Optimization.V1.dll
Constructors
InjectedSolutionConstraint()
public InjectedSolutionConstraint()
InjectedSolutionConstraint(InjectedSolutionConstraint)
public InjectedSolutionConstraint(InjectedSolutionConstraint other)
Parameter | |
---|---|
Name | Description |
other |
InjectedSolutionConstraint |
Properties
ConstraintRelaxations
public RepeatedField<InjectedSolutionConstraint.Types.ConstraintRelaxation> ConstraintRelaxations { get; }
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
Property Value | |
---|---|
Type | Description |
RepeatedFieldInjectedSolutionConstraintTypesConstraintRelaxation |
Routes
public RepeatedField<ShipmentRoute> Routes { get; }
Routes of the solution to inject. Some routes may be omitted from the
original solution. The routes and skipped shipments must satisfy the basic
validity assumptions listed for injected_first_solution_routes
.
Property Value | |
---|---|
Type | Description |
RepeatedFieldShipmentRoute |
SkippedShipments
public RepeatedField<SkippedShipment> SkippedShipments { get; }
Skipped shipments of the solution to inject. Some may be omitted from the
original solution. See the routes
field.
Property Value | |
---|---|
Type | Description |
RepeatedFieldSkippedShipment |