Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

or-tools

> 编程语言
Open source

Google's Operations Research tools:

13.8K stars0 likes1 views
WebsiteGitHub

About

Google's Operations Research tools:

OR-Tools - Google Optimization Tools




Google's software suite for combinatorial optimization.

Table of Contents

  • About OR-Tools
  • Codemap
  • Installation
  • Quick Start
  • Documentation
  • Contributing
  • License

About OR-Tools

Google Optimization Tools (a.k.a., OR-Tools) is an open-source, fast and portable software suite for solving combinatorial optimization problems.

The suite contains:

  • Two constraint programming solver (CP* and CP-SAT);
  • Two linear programming solvers (Glop and PDLP);
  • Wrappers around commercial and other open source solvers, including mixed integer solvers;
  • Bin packing and knapsack algorithms;
  • Algorithms for the Traveling Salesman Problem and Vehicle Routing Problem;
  • Graph algorithms (shortest paths, min cost flow, max flow, linear sum assignment).

We wrote OR-Tools in C++, but provide wrappers in Python, C# and Java.

Codemap

This software suite is composed of the following components:

  • Makefile Top-level for GNU Make based build.
  • makefiles Subsidiary Make files, CI and build system documentation.
  • CMakeLists.txt Top-level for CMake based build.
  • cmake Subsidiary CMake files, CI and build system documentation.
  • WORKSPACE Top-level for Bazel based build.
  • bazel Subsidiary Bazel files, CI and build system documentation.
  • ortools Root directory for source code.
    • base Basic utilities.
    • algorithms Basic algorithms.
      • samples Carefully crafted samples.
    • graph Graph algorithms.
      • samples Carefully crafted samples.
    • linear_solver Linear solver wrapper.
      • samples Carefully crafted samples.
    • glop Simplex-based linear programming solver.
      • samples Carefully crafted samples.
    • pdlp First-order linear programming solver.
      • samples Carefully crafted samples.
    • lp_data Data structures for linear models.
    • constraint_solver Constraint and Routing solver.
      • docs Documentation of the component.
      • samples Carefully crafted samples.
    • sat SAT solver.
      • docs Documentation of the component.
      • samples Carefully crafted samples.
    • bop Boolean solver based on SAT.
    • util Utilities needed by the constraint solver
  • examples Root directory for all examples.
    • contrib Examples from the community.
    • cpp C++ examples.
    • dotnet .Net examples.
    • java Java examples.
    • python Python examples.
    • notebook Jupyter/IPython notebooks.
    • flatzinc FlatZinc examples.
  • tools Delivery Tools (e.g. Windows GNU binaries, scripts, release dockers)

Installation

This software suite has been tested under:

  • Ubuntu 18.04 LTS and up (64-bit);
  • Apple macOS Mojave with Xcode 9.x (64-bit);
  • Microsoft Windows with Visual Studio 2022 (64-bit).

OR-Tools currently builds with a Makefile, but also provides Bazel and CMake support.

For installation instructions (both source and binary), please visit https://developers.google.com/optimization/introduction/installing.

Build from source using Make (legacy)

We provide a Make based build.
Please check the Make build instructions.

Build from source using CMake

We provide a CMake based build.
Please check the CMake build instructions.

Build from source using Bazel

We provide a Bazel based build.
Please check the Bazel build instructions.

Quick Start

The best way to learn how to use OR-Tools is to follow the tutorials in our developer guide:

https://developers.google.com/optimization/introduction/get_started

If you want to learn from code examples, take a look at the examples in the examples directory.

Documentation

The complete documentation for OR-Tools is available at: https://developers.google.com/optimization/

Contributing

The CONTRIBUTING.md file contains instructions on how to submit the Contributor License Agreement before sending any pull requests (PRs). Of course, if you're new to the project, it's usually best to discuss any proposals and reach consensus before sending your first PR.

License

The OR-Tools software suite is licensed under the terms of the Apache License 2.0.
See LICENSE for more information.

Issues· 123 open

View all issuesOpen on GitHub
  • #5415

    RoutingModel.AddSameActivityGroup unusable from Python — TypeError: argument 2 of type 'absl::Span< int const >'

    BugFeature RequestLang: PythonSolver: Routing & CP SolverUpdated Sep 30, 2026
  • #5400

    CP-SAT: reproducible first-solution difference between a model with this 21,058-term objective and the same proto with the objective field cleared (Instance23, NRP)

    Help NeededSolver: CP-SAT SolverUpdated Sep 29, 2026
  • #5433

    cmake(C++): Windows build is broken

    BugOS: WindowsBuild: CMakeCI FailureUpdated Sep 25, 2026
  • #5429

    java: some MathOpt test failed on Alpine

    BugLang: JavaDockerSolver: MathOptUpdated Sep 25, 2026
  • #5427

    python: constraint_solver_extension_test.py (SIGTRAP) with python3.14 on MacOS

    BugOS: MacLang: PythonBuild: CMakeSolver: Routing & CP SolverUpdated Sep 25, 2026
  • #5414

    cmake: fetching eigen is flaky

    BugBuild: CMakeCI FailureUpdated Sep 23, 2026
  • #5413

    java: prefer to use maven.compiler.release

    BugLang: JavaBuild: CMakeUpdated Sep 23, 2026
  • #5398

    python: migrate example/contrib to pybind11

    BugLang: PythonBuild: CMakeUpdated Sep 18, 2026
  • #5392

    CMake: util/fp_utils_test.cc failed (NanDetection) on most distro.

    BugOS: LinuxBuild: CMakeUpdated Sep 16, 2026
  • #5276

    GLOP LinearProgram's GetTransposeSparseMatrix fails if not cleaned up

    Solver: Linear SolverUpdated Sep 15, 2026

> Tags

C++combinatorial-optimizationlinear-programmingoperations-researchoptimization

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言