Alleria
Turn constraints into decisions. A solver built in Rust for linear and mixed-integer optimization, with Python and CLI interfaces that keep the model in your hands.
0.8.21 · In active development · Built from scratch
FROM MODEL TO DECISION
Modeling and solving
Allocate a limited budget. Choose a set of projects. Find a feasible production plan. Alleria brings the same building blocks to each problem: variables, an objective, and constraints.
Model in Python, solve in Rust.
Build a model with a plain Python dictionary or load an LP/MPS file. Use the native backend in process, or the command-line interface.
Continuous and discrete decisions.
Simplex for linear relaxations. Presolve, cuts, branching, and heuristics for mixed-integer search. Specialized algorithms for recognized structures.
Understand what happened.
Read the objective, bound, primal values, and solver profile. An optional local visualizer records real executions for replay and inspection.
A SMALL FIRST STEP
Start with an existing model
Already have an LP or MPS file? Solve it from Python and inspect the result.
Read the Python guidefrom alleria import solve_file
result = solve_file(
"model.mps",
preset="exact",
include_primal=True,
)
# Inspect the outcome before using the solution.
print(result.status, result.objective)
print(result.column_names, result.incumbent_primal)alleria in Python. Existing hermes imports remain supported.LEARN BY DOING
Examples and interactive models
Move a constraint. Walk through a search. Then run the same models in Python.
Move the constraints, watch the optimum
Explore a live feasible region and export your model.
Follow the search, one branch at a time
See bounds, incumbents and pruning in a small knapsack.
Bring a model you already have
Use the same LP file from Python or the terminal.
PROJECT STATUS
A solver under active development.
Alleria is currently a research solver, version 0.8.21. Numerical qualification and resource enforcement are ongoing; experimental quadratic paths have a narrower scope. Start with the documented linear examples and check results against your model. See the current scope →