Solution injected in the request including information about
which visits must be constrained and how they must be
constrained.
Attributes
Name
Description
routes
MutableSequence[google.cloud.optimization_v1.types.ShipmentRoute]
Routes of the solution to inject. Some routes may be omitted
from the original solution. The routes and skipped shipments
must satisfy the basic validity assumptions listed for
injected_first_solution_routes.
For a group of vehicles, specifies at what threshold(s) constraints
on visits will be relaxed and to which level. Shipments listed in
the skipped_shipment field are constrained to be skipped; i.e.,
they cannot be performed.
[[["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-08-07 UTC."],[],[],null,["# Class InjectedSolutionConstraint (1.11.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.2 (latest)](/python/docs/reference/optimization/latest/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.11.0](/python/docs/reference/optimization/1.11.0/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.10.0](/python/docs/reference/optimization/1.10.0/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.9.1](/python/docs/reference/optimization/1.9.1/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.8.5](/python/docs/reference/optimization/1.8.5/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.7.0](/python/docs/reference/optimization/1.7.0/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.6.0](/python/docs/reference/optimization/1.6.0/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.5.0](/python/docs/reference/optimization/1.5.0/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.4.3](/python/docs/reference/optimization/1.4.3/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.3.2](/python/docs/reference/optimization/1.3.2/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.2.0](/python/docs/reference/optimization/1.2.0/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.1.3](/python/docs/reference/optimization/1.1.3/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [1.0.1](/python/docs/reference/optimization/1.0.1/google.cloud.optimization_v1.types.InjectedSolutionConstraint)\n- [0.1.1](/python/docs/reference/optimization/0.1.1/google.cloud.optimization_v1.types.InjectedSolutionConstraint) \n\n InjectedSolutionConstraint(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSolution injected in the request including information about\nwhich visits must be constrained and how they must be\nconstrained.\n\nClasses\n-------\n\n### ConstraintRelaxation\n\n ConstraintRelaxation(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nFor a group of vehicles, specifies at what threshold(s) constraints\non visits will be relaxed and to which level. Shipments listed in\nthe `skipped_shipment` field are constrained to be skipped; i.e.,\nthey cannot be performed."]]