Google OR-Tools
  • Google OR-Tools
Home Installation Guides Reference Examples Support
Google OR-Tools
  • Google OR-Tools
  • Home
  • Installation
  • Guides
  • Reference
  • Examples
  • Support
  • Get Started
    • About OR-Tools
    • Get Started Guides
      • Overview
      • C++
      • Python
      • Java
      • C#
  • Linear Optimization
    • Overview
    • The Glop Linear Solver
    • Service for Apps Script
  • Integer Optimization
    • Overview
    • Solving a MIP Problem
    • Using Arrays to Define a Model
  • Constraint Optimization
    • Overview
    • CP-SAT Solver
    • Solving an Optimization Problem
    • Cryptarithmetic
    • The N-queens Problem
    • Setting Solver Limits
    • Original CP Solver
  • Assignment
    • Overview
    • Solving an Assignment Problem
    • Assignment with Teams of Workers
    • Assignment with Task Sizes
    • Assignment with Allowed Groups
    • Linear Assignment Solver
  • Routing
    • Overview
    • Traveling Salesman Problem
    • Vehicle Routing Problem
    • Capacity Constraints
    • Pickups and Deliveries
    • Time Window Constraints
    • Dimensions
    • Resource Constraints
    • Penalties and Dropping Visits
    • Common Routing Tasks
    • Routing Options
    • Google Direction API
  • Bin Packing
    • Overview
    • The Knapsack Problem
    • Multiple Knapsacks
    • Bin Packing Problem
  • Network Flows
    • Overview
    • Maximum Flows
    • Minimum Cost Flows
    • Assignment as a Min Cost Flow Problem
  • Scheduling
    • Overview
    • Employee Scheduling
    • The Job Shop Problem
  • Home
  • Products
  • OR-Tools
  • Guides

Get Started Guides

OR-Tools is written in C++, but you can also use it with Python, Java, or C#. The following sections will quickly get you started creating and running OR-Tools programs in each of the supported languages:

  • Get started with OR-Tools for C++
  • Get started with OR-Tools for Python
  • Get started with OR-Tools for Java
  • Get started with OR-Tools for C#

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 2019-06-12 UTC.

  • GitHub GitHub
    Download our code
  • Discussion forum Discussion forum
    Visit our forum
  • Connect

    • Blog
    • Facebook
    • Medium
    • Twitter
    • YouTube
  • Programs

    • Women Techmakers
    • Google Developer Groups
    • Google Developers Experts
    • Accelerators
    • Developer Student Clubs
  • Developer consoles

    • Google API Console
    • Google Cloud Platform Console
    • Google Play Console
    • Firebase Console
    • Actions on Google Console
    • Cast SDK Developer Console
    • Chrome Web Store Dashboard
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • Sign up for the Google Developers newsletter Subscribe