Operations Research API
Stay organized with collections
Save and categorize content based on your preferences.
The Operations Research API aims to solve high-level operations research problems using linear programming, mixed integer programming, constraint programming and more. It provides optimization solutions for specific problems to external users through an API call.
Service: optimization.googleapis.com
Service endpoint
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
https://optimization.googleapis.com
Methods |
solveMathOptModel |
POST /v1/mathopt:solveMathOptModel
Solves the input model and returns the result at once. |
Methods |
solveShiftGeneration |
POST /v1/scheduling:solveShiftGeneration
Solves a shift generation problem from the given SolveShiftGenerationRequest by generating shifts from given shift templates in order to cover the employee demand. |
solveShiftScheduling |
POST /v1/scheduling:solveShiftScheduling
Solves a fixed shift scheduling problem from the given SolveShiftSchedulingRequest by assigning employees to shifts such that employees' scheduling preferences are maximized and scheduling constraint violations are minimized. |
Methods |
designShippingNetwork |
POST /v1/shipping:designShippingNetwork
Solves the liner shipping network design and scheduling problem (LSNDSP) from the given DesignShippingNetworkRequest . |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe Operations Research API enables users to solve complex optimization problems, such as linear programming and constraint programming, through API calls.\u003c/p\u003e\n"],["\u003cp\u003eIt offers specialized solutions for mathematical optimization, shift scheduling, and shipping network design.\u003c/p\u003e\n"],["\u003cp\u003eThe API leverages various optimization techniques to provide efficient and effective solutions for operational challenges.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access the service endpoint at \u003ccode\u003ehttps://optimization.googleapis.com\u003c/code\u003e and utilize REST resources for specific problem domains.\u003c/p\u003e\n"]]],["The Operations Research API uses methods like linear and mixed integer programming to provide optimization solutions. It offers three main REST resources: `v1.mathopt`, `v1.scheduling`, and `v1.shipping`. Key actions include `solveMathOptModel` for general model solving, `solveShiftGeneration` and `solveShiftScheduling` for employee shift management, and `designShippingNetwork` for optimizing shipping networks. Each method is accessed via a `POST` request to specific URIs relative to the service endpoint `https://optimization.googleapis.com`.\n"],null,["The Operations Research API aims to solve high-level operations research problems using linear programming, mixed integer programming, constraint programming and more. It provides optimization solutions for specific problems to external users through an API call.\n\nService: optimization.googleapis.com\n\nService endpoint \n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://optimization.googleapis.com`\n\nREST Resource: [v1.mathopt](/optimization/service/reference/rest/v1/mathopt)\n\n| Methods ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| [solveMathOptModel](/optimization/service/reference/rest/v1/mathopt/solveMathOptModel) | `POST /v1/mathopt:solveMathOptModel` Solves the input model and returns the result at once. |\n\nREST Resource: [v1.scheduling](/optimization/service/reference/rest/v1/scheduling)\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [solveShiftGeneration](/optimization/service/reference/rest/v1/scheduling/solveShiftGeneration) | `POST /v1/scheduling:solveShiftGeneration` Solves a shift generation problem from the given `SolveShiftGenerationRequest` by generating shifts from given shift templates in order to cover the employee demand. |\n| [solveShiftScheduling](/optimization/service/reference/rest/v1/scheduling/solveShiftScheduling) | `POST /v1/scheduling:solveShiftScheduling` Solves a fixed shift scheduling problem from the given `SolveShiftSchedulingRequest` by assigning employees to shifts such that employees' scheduling preferences are maximized and scheduling constraint violations are minimized. |\n\nREST Resource: [v1.shipping](/optimization/service/reference/rest/v1/shipping)\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [designShippingNetwork](/optimization/service/reference/rest/v1/shipping/designShippingNetwork) | `POST /v1/shipping:designShippingNetwork` Solves the liner shipping network design and scheduling problem (LSNDSP) from the given `DesignShippingNetworkRequest`. |"]]