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 constraint relaxation levels applied to visits and subsequent visits when threshold conditions are met, with relaxation levels increasing from `Unspecified` to `RelaxAllAfterThreshold`."],["There are four levels of constraint relaxation, ranging from `Unspecified`, which indicates no constraints are relaxed, to `RelaxAllAfterThreshold`, which allows for visits to become unperformed after the threshold time."],["The latest version of the documentation is for version 2.6.0, with prior versions listed back to 1.0.0-beta01."]]],[]]