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 satifies 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 remain simply bound to their vehicle.
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."],[[["This document outlines the different versions of the `InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level` enum within the Google Cloud Optimization v1 API, ranging from version 1.0.0-beta01 to the latest version 2.6.0."],["The `Level` enum describes various constraint relaxation levels for visits in the context of the optimization API, with four distinct field options that increase in constraint flexibility, including `RelaxAllAfterThreshold`, `RelaxVisitTimesAfterThreshold`, `RelaxVisitTimesAndSequenceAfterThreshold`, and `Unspecified`."],["`RelaxAllAfterThreshold` allows for complete freedom of visits after a certain threshold time, even potentially making them unperformed, while `RelaxVisitTimesAfterThreshold` loosens start and end time constraints but retains vehicle and sequence constraints."],["`RelaxVisitTimesAndSequenceAfterThreshold` also loosens start and end time constraints as well as the visit sequence constraints, where visits only remain bound to their respective vehicles."],["The `Unspecified` field signifies that no constraints are relaxed, meaning all visits are fully constrained and this value should not be explicitly set."]]],[]]