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 forinjected_first_solution_routes.
For zero or more groups of vehicles, specifies when and how much to relax constraints. If this field is empty, all non-empty vehicle routes are fully constrained.
getRoutes
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 forinjected_first_solution_routes.
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 forinjected_first_solution_routes.
For zero or more groups of vehicles, specifies when and how much to relax
constraints. If this field is empty, all non-empty vehicle routes are
fully constrained.
For zero or more groups of vehicles, specifies when and how much to relax
constraints. If this field is empty, all non-empty vehicle routes are
fully constrained.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Optimization V1 Client - Class InjectedSolutionConstraint (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-optimization/latest/V1.InjectedSolutionConstraint)\n- [1.0.4](/php/docs/reference/cloud-optimization/1.0.4/V1.InjectedSolutionConstraint)\n- [0.7.0](/php/docs/reference/cloud-optimization/0.7.0/V1.InjectedSolutionConstraint)\n- [0.6.5](/php/docs/reference/cloud-optimization/0.6.5/V1.InjectedSolutionConstraint)\n- [0.5.1](/php/docs/reference/cloud-optimization/0.5.1/V1.InjectedSolutionConstraint)\n- [0.4.0](/php/docs/reference/cloud-optimization/0.4.0/V1.InjectedSolutionConstraint)\n- [0.3.4](/php/docs/reference/cloud-optimization/0.3.4/V1.InjectedSolutionConstraint)\n- [0.2.0](/php/docs/reference/cloud-optimization/0.2.0/V1.InjectedSolutionConstraint)\n- [0.1.9](/php/docs/reference/cloud-optimization/0.1.9/V1.InjectedSolutionConstraint) \nReference documentation and code samples for the Google Cloud Optimization V1 Client class InjectedSolutionConstraint.\n\nSolution injected in the request including information about which visits\nmust be constrained and how they must be constrained.\n\nGenerated from protobuf message `google.cloud.optimization.v1.InjectedSolutionConstraint`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Optimization \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRoutes\n\nRoutes of the solution to inject. Some routes may be omitted from the\noriginal solution. The routes and skipped shipments must satisfy the basic\nvalidity assumptions listed for `injected_first_solution_routes`.\n\n### setRoutes\n\nRoutes of the solution to inject. Some routes may be omitted from the\noriginal solution. The routes and skipped shipments must satisfy the basic\nvalidity assumptions listed for `injected_first_solution_routes`.\n\n### getSkippedShipments\n\nSkipped shipments of the solution to inject. Some may be omitted from the\noriginal solution. See the `routes` field.\n\n### setSkippedShipments\n\nSkipped shipments of the solution to inject. Some may be omitted from the\noriginal solution. See the `routes` field.\n\n### getConstraintRelaxations\n\nFor zero or more groups of vehicles, specifies when and how much to relax\nconstraints. If this field is empty, all non-empty vehicle routes are\nfully constrained.\n\n### setConstraintRelaxations\n\nFor zero or more groups of vehicles, specifies when and how much to relax\nconstraints. If this field is empty, all non-empty vehicle routes are\nfully constrained."]]