# Cloud Optimization v1 API - Enum OptimizeToursRequest.Types.SolvingMode (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.OptimizeToursRequest.Types.SolvingMode)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.6.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.5.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.4.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.3.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.2.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.1.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/2.0.0/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)
- [1.0.0-beta01](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/1.0.0-beta01/Google.Cloud.Optimization.V1.OptimizeToursRequest.Types.SolvingMode)

    public enum OptimizeToursRequest.Types.SolvingMode

Reference documentation and code samples for the Cloud Optimization v1 API enum OptimizeToursRequest.Types.SolvingMode.

Defines how the solver should handle the request. In all modes but
`VALIDATE_ONLY`, if the request is invalid, you will receive an
`INVALID_REQUEST` error. See
\[max_validation_errors\]\[google.cloud.optimization.v1.OptimizeToursRequest.max_validation_errors\]
to cap the number of errors returned.

## 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** |
| `DefaultSolve` | Solve the model. |
| `DetectSomeInfeasibleShipments` | Only populates \[OptimizeToursResponse.validation_errors\]\[google.cloud.optimization.v1.OptimizeToursResponse.validation_errors\] or \[OptimizeToursResponse.skipped_shipments\]\[google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments\], and doesn't actually solve the rest of the request (`status` and `routes` are unset in the response). If infeasibilities in `injected_solution_constraint` routes are detected they are populated in the \[OptimizeToursResponse.validation_errors\]\[google.cloud.optimization.v1.OptimizeToursResponse.validation_errors\] field and \[OptimizeToursResponse.skipped_shipments\]\[google.cloud.optimization.v1.OptimizeToursResponse.skipped_shipments\] is left empty. *IMPORTANT*: not all infeasible shipments are returned here, but only the ones that are detected as infeasible during preprocessing. |
| `ValidateOnly` | Only validates the model without solving it: populates as many \[OptimizeToursResponse.validation_errors\]\[google.cloud.optimization.v1.OptimizeToursResponse.validation_errors\] as possible. |