Reference documentation and code samples for the Cloud Optimization v1 API enum InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level.
Expresses the different constraint relaxation levels, which are
applied for a visit and those that follow when it satisfies the
threshold conditions.
The enumeration below is in order of increasing relaxation.
Same as RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD, but the
vehicle is also relaxed: visits are completely free at or after the
threshold time and can potentially become unperformed.
RelaxVisitTimesAfterThreshold
Visit start times and vehicle start/end times will be relaxed, but
each visit remains bound to the same vehicle and the visit sequence
must be observed: no visit can be inserted between them or before
them.
RelaxVisitTimesAndSequenceAfterThreshold
Same as RELAX_VISIT_TIMES_AFTER_THRESHOLD, but the visit sequence
is also relaxed: visits can only be performed by this vehicle, but
can potentially become unperformed.
Unspecified
Implicit default relaxation level: no constraints are relaxed,
i.e., all visits are fully constrained.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The provided content is reference documentation for the `InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level` enum within the Google Cloud Optimization v1 API."],["This enum defines the different levels of constraint relaxation that can be applied to visits within the optimization process, affecting factors like visit times and sequences."],["The available relaxation levels, ordered from least to most relaxed, are `Unspecified`, `RelaxVisitTimesAfterThreshold`, `RelaxVisitTimesAndSequenceAfterThreshold`, and `RelaxAllAfterThreshold`."],["The latest version available for this specific enum is version 2.6.0, with several previous versions also available for review."]]],[]]