# Cloud Optimization v1 API - Enum InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level (2.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.7.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.6.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.5.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.4.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.3.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.2.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.1.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.0.0/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)
- [1.0.0-beta01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/1.0.0-beta01/Google.Cloud.Optimization.V1.InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level)

    public enum InjectedSolutionConstraint.Types.ConstraintRelaxation.Types.Relaxation.Types.Level

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.

## Namespace

[Google.Cloud.Optimization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1)

## Assembly

Google.Cloud.Optimization.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `RelaxAllAfterThreshold` | 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. This value must not be explicitly used in `level`. |