Reference documentation and code samples for the Cloud Optimization V1 API module Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation::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.
Constants
LEVEL_UNSPECIFIED
value: 0 Implicit default relaxation level: no constraints are relaxed,
i.e., all visits are fully constrained.
This value must not be explicitly used in level.
RELAX_VISIT_TIMES_AFTER_THRESHOLD
value: 1 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.
RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD
value: 2 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.
RELAX_ALL_AFTER_THRESHOLD
value: 3 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.
[[["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-09-09 UTC."],[],[],null,["# Cloud Optimization V1 API - Module Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation::Level (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-optimization-v1/latest/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.11.1](/ruby/docs/reference/google-cloud-optimization-v1/0.11.1/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.10.0](/ruby/docs/reference/google-cloud-optimization-v1/0.10.0/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.9.2](/ruby/docs/reference/google-cloud-optimization-v1/0.9.2/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.8.2](/ruby/docs/reference/google-cloud-optimization-v1/0.8.2/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.7.0](/ruby/docs/reference/google-cloud-optimization-v1/0.7.0/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.6.0](/ruby/docs/reference/google-cloud-optimization-v1/0.6.0/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.5.0](/ruby/docs/reference/google-cloud-optimization-v1/0.5.0/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.4.1](/ruby/docs/reference/google-cloud-optimization-v1/0.4.1/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.3.0](/ruby/docs/reference/google-cloud-optimization-v1/0.3.0/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.2.1](/ruby/docs/reference/google-cloud-optimization-v1/0.2.1/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level)\n- [0.1.1](/ruby/docs/reference/google-cloud-optimization-v1/0.1.1/Google-Cloud-Optimization-V1-InjectedSolutionConstraint-ConstraintRelaxation-Relaxation-Level) \nReference documentation and code samples for the Cloud Optimization V1 API module Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation::Level.\n\nExpresses the different constraint relaxation levels, which are\napplied for a visit and those that follow when it satisfies the\nthreshold conditions.\n\n\n\u003cbr /\u003e\n\nThe enumeration below is in order of increasing relaxation.\n\nConstants\n---------\n\n### LEVEL_UNSPECIFIED\n\n**value:** 0 \nImplicit default relaxation level: no constraints are relaxed,\ni.e., all visits are fully constrained.\n\n\n\u003cbr /\u003e\n\nThis value must not be explicitly used in `level`.\n\n### RELAX_VISIT_TIMES_AFTER_THRESHOLD\n\n**value:** 1 \nVisit start times and vehicle start/end times will be relaxed, but\neach visit remains bound to the same vehicle and the visit sequence\nmust be observed: no visit can be inserted between them or before\nthem.\n\n### RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD\n\n**value:** 2 \nSame as `RELAX_VISIT_TIMES_AFTER_THRESHOLD`, but the visit sequence\nis also relaxed: visits can only be performed by this vehicle, but\ncan potentially become unperformed.\n\n### RELAX_ALL_AFTER_THRESHOLD\n\n**value:** 3 \nSame as `RELAX_VISIT_TIMES_AND_SEQUENCE_AFTER_THRESHOLD`, but the\nvehicle is also relaxed: visits are completely free at or after the\nthreshold time and can potentially become unperformed."]]