gecode VS OptaPlanner

Compare gecode vs OptaPlanner and see what are their differences.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
gecode OptaPlanner
5 30
328 490
1.5% 1.2%
0.0 2.5
14 days ago 3 days ago
C++ Java
GNU General Public License v3.0 or later 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.

gecode

Posts with mentions or reviews of gecode. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-11-09.
  • Solving Every Sudoku Puzzle (2006)
    3 projects | news.ycombinator.com | 9 Nov 2025
    You will most likely need both smarter heuristics and better deductions for larger instances. As mentioned, I've seen well-engineered custom tight C++-solvers with decent heuristics and the normal deductions take >1 hour on some instances. Most cases I've tried can be solved reasonably quickly when using OR-Tools CP-SAT which uses constraint programming style lazy clause generation and custom MIP relaxations in a portfolio.

    For a list of interesting instances to test, see this file: https://github.com/Gecode/gecode/blob/release/6.3.0/examples...

    I should probably do some benchmarks on that with the standard MiniZinc solvers.

  • Gecode is an open source C++ toolkit for developing constraint-based systems
    1 project | news.ycombinator.com | 5 Jul 2025
    Adding to wavemode, the Sudoku example is a good starting point: https://github.com/Gecode/gecode/blob/master/examples/sudoku...

    In the documentation (https://www.gecode.org/doc-latest/MPG.pdf) there are a lot of worked examples as well.

  • Send+more=money and how to use forward-checking in search
    2 projects | news.ycombinator.com | 21 Jul 2021
    Sure, there are lots but I think it should be doable. Will probably try sometime. Easiest is to make a model that fixes the lengths of the words, and just run it for different word lengths.

    As a comparison, see this model solving crosswords using constraint programming. https://github.com/Gecode/gecode/blob/develop/examples/cross...

  • Testing non-trivial software (C++)
    2 projects | /r/learnprogramming | 16 Jun 2021
    The main idea is that one defines tests that post the propagator on an initial domain, and then adding a checker for ground instances if it is a solution. The testing infrastructure runs the propagator in simulated setting, making sure that non-solutions are pruned and that solutions are found. Here is an example for the sorted constraint: sorted.cpp

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.

What are some alternatives?

When comparing gecode and OptaPlanner you can also consider the following projects:

Choco - An open-source Java library for Constraint Programming

or-tools - Google's Operations Research tools:

biteopt - Derivative-Free Global Optimization Algorithm (C++, Python binding) - Continuous, Discrete, TSP, NLS, MINLP

Decider - An Open Source .Net Constraint Programming Solver

kotlin-statistics - Idiomatic statistical operators for Kotlin

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that C++ is
the 7th most popular programming language
based on number of references?