Open Source Decision Models: When to Use Drools DMN, DecisionProgramming.jl, Google OR-Tools or TOD
Four open source decision tools solve four different problems. Match the tool to the problem's structure, then check what each one asks you to supply and what its licence covers.
Choose an open source decision model by the shape of your problem. Use Drools with DMN to execute explicit business rules, DecisionProgramming.jl to choose actions under uncertainty with influence diagrams, and Google OR-Tools to find the best plan under constraints. Use a learned option scorer such as TOD when each case is free text or images and the job is to pick one action from a list that you supply. None of the four replaces the others, because each one needs different inputs from you.
| Problem and tool | What you supply | What you get back | Main limit |
|---|---|---|---|
| Explicit policy: Drools with DMN | Decision tables and FEEL expressions | A rule outcome that people can trace | Covers only the rules that someone writes |
| Uncertainty over several stages: DecisionProgramming.jl | An influence diagram, probabilities and a utility function | An optimal strategy and its utility distribution | Model size grows quickly with nodes and states |
| Constrained allocation: Google OR-Tools | Variables, constraints and an objective | A feasible or optimal plan | Large problems can be hard to solve |
| Learned choice among options: TOD | A case description and a list of allowed actions | One probability per option | Scores only; it does not fill in arguments or act |
The term "decision model" covers four different kinds of problem
A search for open source decision models returns tools that look alike but solve different problems. A rules engine applies a policy that is already known. A decision-analysis package weighs uncertain outcomes against preferences. An optimization solver searches a huge space of combinations for the best feasible one. A learned model reads an unstructured case and estimates which of several supplied options fits it.
The practical test is what you can write down before the tool runs. If you can write the policy, you need rules. If you can write the probabilities and how much each outcome is worth to you, you need decision analysis. If you can write the constraints and the goal, you need a solver. If you can only list the possible actions and show examples of the right choice, a learned scorer is the candidate.
Drools with DMN and Kogito executes business rules that analysts can read and maintain
Decision Model and Notation, or DMN, is a standard way to write decisions as diagrams and decision tables. The Apache KIE DMN page describes it as "a common and visual notation readily understandable by all users and personas." Analysts can draft the decision requirements, developers can automate them, and business users can manage them.
Drools is the open source Java engine that runs these models. According to Apache KIE, Drools supports DMN at Conformance level 3, which means all of the features in the standard. The engine also checks decision tables for gaps and overlaps before they run. Support for DMN 1.6, the latest version of the standard, arrived with Apache KIE 10.2.0 in April 2026.
Kogito packages these decisions as cloud services. The Kogito documentation lists Quarkus as the recommended framework and Spring Boot as the alternative. Kogito generates a REST endpoint for each decision automatically.
DMN fits eligibility checks, approval policies, pricing rules and any decision where an auditor must see why an outcome was reached. The main limit is coverage. The engine applies exactly the rules that someone wrote, so a case that no rule covers gets no useful answer.
DecisionProgramming.jl solves decisions under uncertainty that unfold over several stages
DecisionProgramming.jl is a Julia package for "multi-stage decision problems under uncertainty," according to its documentation. You describe the problem as an influence diagram. In that diagram, chance nodes stand for uncertain events, decision nodes stand for choices among discrete alternatives, and value nodes stand for consequences.
The package turns the diagram into a mixed-integer linear program and solves it. The result is a strategy for every decision node, together with the distribution of utility that the strategy produces. The documentation also covers risk measures such as conditional value-at-risk, so a team can prefer a safer strategy over one with a higher average.
A typical use is a choice about whether to gather more information before committing resources. You install it from the Julia package manager with add DecisionProgramming, add JuMP and add HiGHS, because it needs a solver for mixed-integer programs. The latest tag is v2.0.1, dated 14 May 2025.
The limit is size. The complexity page states that mixed-integer linear programming is NP-hard. It also warns that models can become large when a diagram has many nodes or many states per node. You must also supply every probability and utility yourself.
Google OR-Tools finds the best feasible plan when the constraints and the goal are known
Google OR-Tools is an open source suite for vehicle routing, flows, integer and linear programming, and constraint programming. You can call it from C++, Python, C# or Java. In Python, python -m pip install ortools installs it.
The suite bundles its own solvers, including CP-SAT for constraint programming and Glop and PDLP for linear programming. It can also call other open source and commercial solvers. Staff rosters, delivery routes, production schedules and bin packing are typical problems.
OR-Tools needs a precise model. You define the variables, every constraint and one objective, and the solver returns the best plan that it finds within those rules. It does not weigh uncertain outcomes on its own, and it cannot read a free-text request. The latest stable release is v9.15, published on 12 January 2026. A v10.0 release candidate followed on 23 November 2026 with breaking changes to the build and to imports.
TOD scores a list of options that you supply and defers when it is not confident
TOD covers the category that the other three tools leave out. Parsec, a small language model lab, describes TOD on its product page as a "universal decision model." It reads text, images and task state and ranks the next action from a list of allowed actions. It generates no free text and invents no actions. A confidence gate lets TOD handle a turn when it is confident and passes the turn unchanged to the existing language model otherwise.
The product page describes the model in two inconsistent ways, as a compact encoder and as a model that starts from a 12-billion-parameter base. The release in the example below is the one in the public repository. It consists of LoRA adapters on Google's gemma-4-12B-it plus a ModernBERT-base retriever. The pinned versions are code commit 642834e and package version 1.0.0, both dated 1 October 2026, with Hugging Face bundle revision 07d34d5.
The repository lists these installation requirements:
- You need Python 3.10 or later with
torch,peftandtransformersversion 5.14 or later. - You need a CUDA GPU running bf16, because the default loader uses
device="cuda". - You must set attention to
chunked_eageroreager, because the repository says never to usesdpaattention on this base model. - You should avoid bitsandbytes int8 quantization, which the repository reports changes some picks.
Parsec measures its latency figures on an A100-40G in the repository and on an H100 80GB on the product page. Neither source states a minimum GPU memory. The steps to install and run the release are:
git clone https://github.com/daseinlabs/tod && cd tod
git checkout 642834e
pip install -e .
hf auth login
scripts/fetch_weights.sh
The call takes a case and a list of options and returns one probability per option, in the order given:
from tod.release.load import load_picker
picker = load_picker("picker")
probs = picker.predict(
state="A customer was charged twice and wants one payment returned.",
options=["refund_request", "order_status", "cancel_order"],
question="Which intent matches?",
)
# probs is a list of three probabilities that sum to 1
The repository does not print scores for this example. The model card shows a two-option call that returns [0.71, 0.29]. Parsec's hosted API defines confidence as (K × pmax − 1) / (K − 1), where K is the number of options. For that output, confidence is (2 × 0.71 − 1) / 1, or 0.42. The documentation gives no threshold, so your application has to set one from held-out cases:
K = len(options)
confidence = (K * max(probs) - 1) / (K - 1)
if confidence >= threshold: # threshold chosen on your own held-out set
intent = options[probs.index(max(probs))]
else:
intent = None # defer: send the turn to your existing LLM
TOD returns a choice and does nothing more. Turning refund_request into an actual refund still needs two more steps. The first is resolving arguments, such as which payment and what amount, and TOD's documentation does not mention doing this. The second is executing the action, which stays with your application and its permission checks.
On quality, Parsec's own release evaluation, dated 29 September 2026, puts TOD at 84.4% on the public JevBench set of 231 decisions. The untrained base model scored 86.2% on the same set. The repository also names another model that scores higher. Calibration, coverage, latency and total cost on your own workload have not been measured independently. Parsec lists the hosted service at $0.30 per 1,000 decisions, billed on top of any language model that handles deferred turns. Parsec also offers to tune decision models on a customer's own decisions, with no published price.
The three classic tools are open source as a whole, while TOD splits code, adapters and base weights under separate terms
For the three classic tools, open source means the whole tool. For TOD, the code, the adapters and the base model each have their own terms.
| Component | Source code | Downloadable weights | Licence |
|---|---|---|---|
| Drools and Kogito | Yes | Not applicable | Apache 2.0 |
| DecisionProgramming.jl | Yes | Not applicable | MIT |
| Google OR-Tools | Yes | Not applicable | Apache 2.0 |
| TOD adapters and retriever | Inference code only | Yes, without base weights | Apache 2.0 bundle licence |
| Gemma 4 12B-it base | Not included in TOD | Yes, from Google | Apache 2.0 per Google |
The TOD GitHub repository has no licence file of its own. Its README points to the licence in the weight bundle, which the Hugging Face card lists as Apache 2.0. The README also states that the base model follows the Gemma 4 terms and that the Gemma Prohibited Use Policy applies. Google's model card lists Gemma 4 12B-it under Apache 2.0. The training pipeline for the adapters is not in the repository, so the release is downloadable weights with inference code, not a fully reproducible open source model.
Rules, solvers and an unmodified model should be tried before any custom tuning
Explicit rules are enough when the policy can be written down and changes slowly. A solver is enough when the problem is a plan under known constraints. Decision analysis is enough when someone can estimate the probabilities and agree on the utilities. None of these needs training data.
A learned scorer is worth testing only when cases arrive as free text or images and the option list is stable. Start with an unmodified release or a prompted general model, and test it on a few hundred held-out cases from your own traffic. Record accuracy, the share of turns that clear your confidence threshold and the cost of the deferred turns.
Customization is a response to a gap that this test shows, not a default step. If the frozen model already meets your pass mark, tuning adds cost and a model to maintain. If it falls short, a tuned model has to beat the frozen one on the same held-out set before it replaces it. That comparison matters because tuning does not always raise accuracy.
Sources
- Apache KIE, DMN: https://kie.apache.org/drools/dmn/
- Apache KIE, Kogito documentation 10.1.x: https://kie.apache.org/docs/10.1.x/kogito/
- Apache KIE, Drools repository: https://github.com/apache/incubator-kie-drools
- DecisionProgramming.jl documentation: https://gamma-opt.github.io/DecisionProgramming.jl/dev/
- DecisionProgramming.jl, Influence diagram: https://gamma-opt.github.io/DecisionProgramming.jl/dev/decision-programming/influence-diagram/
- DecisionProgramming.jl, Computational complexity: https://gamma-opt.github.io/DecisionProgramming.jl/dev/decision-programming/computational-complexity/
- DecisionProgramming.jl repository: https://github.com/gamma-opt/DecisionProgramming.jl
- DecisionProgramming.jl tags: https://github.com/gamma-opt/DecisionProgramming.jl/tags
- Google OR-Tools: https://developers.google.com/optimization
- Google OR-Tools, Installing: https://developers.google.com/optimization/introduction/installing
- Google OR-Tools repository: https://github.com/google/or-tools
- Google OR-Tools releases: https://github.com/google/or-tools/releases
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, TOD API docs: https://parseclab.ai/tod/docs/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/
- TOD repository: https://github.com/daseinlabs/tod
- TOD pyproject.toml: https://github.com/daseinlabs/tod/blob/main/pyproject.toml
- TOD model card: https://huggingface.co/parsecai/tod
- Google, Gemma 4 12B-it model card: https://huggingface.co/google/gemma-4-12B-it
- Google, Gemma Terms of Use: https://ai.google.dev/gemma/terms