OptaPlanner VS or-tools

Compare OptaPlanner vs or-tools and see what are their differences.

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
OptaPlanner or-tools
30 63
407 12,212
4.7% 1.6%
2.8 9.9
about 21 hours ago 8 days ago
Java C++
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

OptaPlanner

Posts with mentions or reviews of OptaPlanner. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-23.

or-tools

Posts with mentions or reviews of or-tools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-27.
  • Ask HN: What are you working on? (April 2025)
    134 projects | news.ycombinator.com | 27 Apr 2025
    Having joined may father and his friend during the process of cutting down big trees in the village neighborhood I can personally vouch that this indeed a cumbersome and very complex task for both the planning and the execution phases. However, for us the tasks are made easier by the trimming of the tree's branches since my father's his friend is the expert tree climber.

    From your descriptions, it seems that your tree cutting procedures do not involved precut of the tree's branches before cutting the tree down.

    I've got the feeling that this cutting tree problem can be solved by constraint programming techniques [1],[2]. Alternatively generic tools for constraint programming, for example OR-Tools and MiniZinc can probably do the same if not better [3],[4].

    [1] Logic, Optimization, and Constraint Programming: A Fruitful Collaboration - John Hooker - CMU (2023) [video]:

    https://www.youtube.com/live/TknN8fCQvRk

    [2] "We Really Don't Know How to Compute!" - Gerald Sussman - MIT (2011) [video]:

    https://youtube.com/watch?v=HB5TrK7A4pI

    [3] Google OR-Tools:

    https://developers.google.com/optimization

    [4] MiniZinc:

    https://www.minizinc.org/

  • OR-Tools: Fast and portable software for combinatorial optimization
    1 project | news.ycombinator.com | 21 Mar 2025
  • DuckDB Optimizers: The Low-Key MVP
    1 project | news.ycombinator.com | 17 Nov 2024
    Yep - i thought / hoped / assumed it was about Optimizers aka Sat solvers, etc

    A la https://github.com/google/or-tools

  • Mathematical Optimization for Cargo Ships
    7 projects | news.ycombinator.com | 5 Jun 2024
    https://developers.google.com/optimization

    https://github.com/google/or-tools

  • or-tools VS timefold-solver - a user suggested alternative
    2 projects | 4 Jan 2024
  • A* Tricks for Videogame Path Finding
    2 projects | news.ycombinator.com | 1 Jan 2024
    Small NP-hard problems aren't actually that bad. You can usually formulate them as eg a integer programming problem or a SMT problem, and throw an off-the-shelf solver at them.

    You only need to learn the solver once, and you can re-use it for all kinds of problems. (Assuming that your instances don't have to be solved with low latency. Eg only as part of your level generation process, or at most when loading a randomly generated level, but not every frame or so.)

    https://developers.google.com/optimization has a decent collection of tools.

  • Ask HN: Comment here about whatever you're passionate about at the moment
    17 projects | news.ycombinator.com | 6 Nov 2023
    Just saw that it looks like an upcoming release of OR-Tools might include reified tables: https://github.com/google/or-tools/commit/94f3d9b46870e7ea04...
  • [P] Advice needed for what tool/algorithm is appropriate
    2 projects | /r/MachineLearning | 23 Sep 2023
    Google OR - Tried to represent a solution to be a 5 dimensional matrix with an hour granularity. Dimensions are stations, program, project manager, day and time. If matrix[station][program][project manager][day][time] = 1, then that set is assigned, otherwise not. The main issue encountered here is about time slots, as they are not necessarily on a per hour basis. We tried time slots to be in a 5-minute interval. However, constructing the constraints that would adhere to each programs duration was proven to be difficult.
  • What software is used in the field these days?
    2 projects | /r/optimization | 20 May 2023
  • Sudoku solver
    1 project | /r/learnpython | 20 May 2023
    If you are just interested in getting a solution or for having a reference solver: There is a sudoku example in the OR-Tools package that uses constraint programming.

What are some alternatives?

When comparing OptaPlanner and or-tools you can also consider the following projects:

Choco - An open-source Java library for Constraint Programming

pyomo - An object-oriented algebraic modeling language in Python for structured optimization problems.

JaCoP - Java Constraint Programming solver

SciPy - SciPy library main repository

vroom - Vehicle Routing Open-source Optimization Machine

optapy - OptaPy is an AI constraint solver for Python to optimize planning and scheduling problems.

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured

Did you know that Java is
the 8th most popular programming language
based on number of references?