# Cloud Optimization V1 API - Module Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation::Level (v0.16.0)

0.16.0 (latest) 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.1 0.1.1 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.


<br />

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.


<br />

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.