Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Google OR-Tools in Python: Solve optimization Problems
Highest Rated
Hot & New
Rating: 4.9 out of 5(15 ratings)
43 students

Google OR-Tools in Python: Solve optimization Problems

Learn optimization step by step: build 10 projects in scheduling, packing and vehicle routing
Last updated 10/2026
English
English [Auto],Spanish

What you'll learn

  • Load problem data from Excel into your model
  • Turn a word description into a mathematical model
  • Learn how to debug your optimization model
  • Visualize the optimial decisions
  • Route optimization problem
  • Scheduling Problem

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

5 sections • 21 lectures • 5h 13m total length
  • Introduction6:25

    What is Google OR-Tools?

    An open-source software suite from Google for solving optimization problems: finding the best decision among a huge number of possible ones.

    • Free: open source under the Apache 2.0 license.

    • Multi-language: Python, C++, Java and C#.

    • Easy to install: pip install ortools.

    • Proven: CP-SAT regularly wins top places at the MiniZinc Challenge.

    • Typical uses: scheduling staff and machines, routing vehicles, assigning tasks, packing and selecting items.

Requirements

  • no programming skill is needed
  • Don't worry if you do not know Python or how to code, I will teach you everything you need to start with optimization

Description

Have you ever looked at a messy real-world decision and thought, "There must be a smarter way to do this"?

  • Who should work which shift? Which boxes go on which truck?

  • What's the best route for three delivery vans?


These questions show up everywhere, in factories, hospitals, schools, warehouses and offices, and most people still answer them with guesswork and spreadsheets.

I'm Alireza Soroudi, and I've spent years solving optimization problems in operations research, energy systems and supply chains. In this course I want to share the tool I reach for most often: Google OR-Tools, and in particular its CP-SAT solver. It's free, it's powerful, and with Python it's surprisingly approachable, once someone shows you how to think about problems the right way.

How the course works

We start gently. First, you'll learn what OR-Tools is and the four building blocks of every optimization model: data, decision variables, constraints and an objective. Then we warm up with five small toy problems, such as finding two numbers, counting chickens and rabbits, and solving the famous SEND + MORE = MONEY puzzle. They're short and a little playful, but each one teaches a skill you'll use again and again.

Then we build. You'll work through 10 hands-on projects, each introducing one new idea:

  • Scheduling: build a weekly staff roster, schedule jobs on factory machines, and create a school timetable with no clashes.

  • Allocation: pack boxes into as few trucks as possible, and choose the best set of projects within a budget.

  • Traveling salesman: plan the shortest tourist route through a city, then decide which sights are worth visiting when time is limited.

  • Vehicle routing: design delivery routes for several vans, then add truck capacities and customer time windows.

Every project follows the same simple rhythm: understand the problem in plain words, write the mathematical model, translate it into Python, solve it, and look at the results. Each one comes with its own Excel data file, so you'll also learn how to load real data into your models, not just hard-coded numbers.

Along the way, you'll find exercises that ask you to change something and see what happens. What if a machine breaks down? What if the team can only handle four projects? These "what if" moments are where the real understanding clicks.

Who this course is for

This course is for engineers, analysts, students, researchers and curious programmers who want to solve decision problems with code. You don't need a background in optimization or advanced math. If you can write basic Python (loops, lists and dictionaries), you're ready. I'll explain every formula in plain language before we write it.

What you'll walk away with

By the end, you'll be able to take a real problem, describe it as a model, and solve it with CP-SAT confidently. More importantly, you'll start seeing optimization opportunities everywhere, in your work, your research and your own projects.

I'd love to have you in the course. Let's get started!

Who this course is for:

  • Students in transportation engineering
  • Engineers
  • Optimization experts in healthcare management
  • Applied math researchers
  • People interested in complex problems and artificial inteligence
  • Companies that wish to solve complex problems
  • Undergrad, graduation, master program, and doctorate students.