Google Cloud Optimization V1 Client - Class SolvingMode (0.1.9)

Reference documentation and code samples for the Google Cloud Optimization V1 Client class 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 to cap the number of errors returned.

Protobuf type google.cloud.optimization.v1.OptimizeToursRequest.SolvingMode

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

DEFAULT_SOLVE

Value: 0

Solve the model.

Generated from protobuf enum DEFAULT_SOLVE = 0;

VALIDATE_ONLY

Value: 1

Only validates the model without solving it: populates as many OptimizeToursResponse.validation_errors as possible.

Generated from protobuf enum VALIDATE_ONLY = 1;

DETECT_SOME_INFEASIBLE_SHIPMENTS

Value: 2

Only populates OptimizeToursResponse.skipped_shipments, and doesn't actually solve the rest of the request (status and routes are unset in the response).

IMPORTANT: not all infeasible shipments are returned here, but only the ones that are detected as infeasible as a preprocessing.

Generated from protobuf enum DETECT_SOME_INFEASIBLE_SHIPMENTS = 2;