Cloud Optimization v1 API - Class InjectedSolutionConstraint (2.2.0)

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.

Inheritance

object > InjectedSolutionConstraint

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

InjectedSolutionConstraint()

public InjectedSolutionConstraint()

InjectedSolutionConstraint(InjectedSolutionConstraint)

public InjectedSolutionConstraint(InjectedSolutionConstraint other)
Parameter
NameDescription
otherInjectedSolutionConstraint

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
TypeDescription
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
TypeDescription
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
TypeDescription
RepeatedFieldSkippedShipment