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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-02 UTC."],[[["The document provides reference documentation for the `InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level` enum within the Google Cloud Optimization v1 API."],["This enum outlines different levels of constraint relaxation that can be applied to visits in the context of vehicle routing and optimization, each with different rules on times and sequencing."],["Four levels of constraint relaxation are defined: `Unspecified`, `RelaxVisitTimesAfterThreshold`, `RelaxVisitTimesAndSequenceAfterThreshold`, and `RelaxAllAfterThreshold`, each altering when constraints are relaxed."],["The latest version of the documentation is for version 2.6.0, and previous versions ranging from 2.5.0 down to 1.0.0-beta01 are also available for reference."]]],[]]