OR-Tools Examples
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-06-05 UTC.
[null,null,["Last updated 2025-06-05 UTC."],[[["\u003cp\u003eThis page provides a variety of code examples and tutorials for different optimization problems, including linear optimization, integer optimization, constraint optimization, and routing.\u003c/p\u003e\n"],["\u003cp\u003eThe examples cover various use cases like the Traveling Salesperson Problem (TSP), Vehicle Routing Problem (VRP), and more, with variations like capacity constraints, pickup and delivery, and time windows.\u003c/p\u003e\n"],["\u003cp\u003eUsers can access code in C++, Python, .Net, and Java, along with accompanying tutorials to understand the implementation.\u003c/p\u003e\n"],["\u003cp\u003eInteractive Colabs are available, allowing users to run the code demos directly in their browser for immediate experimentation.\u003c/p\u003e\n"],["\u003cp\u003eThe table organizes these resources by problem type and interface, providing easy navigation to relevant materials for specific optimization needs.\u003c/p\u003e\n"]]],["The table provides resources for optimization problems, including linear, integer, and constraint optimization, and various routing scenarios. Each problem type lists its interface and a description. It offers tutorials and Colab demos for interactive learning. Code examples are given in C++, Python, .Net, and Java, linked to corresponding GitHub repositories. The table covers diverse problems such as TSP, VRP, and includes capacity, time windows, and location constraints.\n"],null,[]]