Python SDK for Admiral — combinatorial optimization platform
Project description
Admiral
Combinatorial optimization platform. 9 problem types, 27 proprietary algorithms, solver racing, AI advisor, and natural language formulation — all behind a single API.
Install
pip install admiral-solver
Quick Start
from admiral import Solver
solver = Solver(api_key="adm_sk_...")
# Solve a QUBO problem
result = solver.solve_qubo(Q=[[-5, 2, 4], [0, -3, 1], [0, 0, -8]])
print(result.energy) # -13.0
print(result.solution) # [1, 0, 1]
Problem Types
| Type | Description |
|---|---|
| QUBO | Quadratic unconstrained binary optimization |
| Ising | Spin glass models |
| HUBO | Higher-order binary optimization |
| DQM | Discrete quadratic models |
| CQM | Constrained quadratic models |
| MAX-SAT | Maximum satisfiability |
| PBO | Pseudo-boolean optimization |
| WCSP | Weighted constraint satisfaction |
| Potts | Multi-state lattice models |
Solver Methods
solver.solve_qubo(Q, timeout=30, num_reads=100)
solver.solve_ising(h, J, timeout=30, num_reads=100)
solver.solve_hubo(terms, num_variables, timeout=30)
solver.solve_dqm(domains, linear, quadratic, timeout=30)
solver.solve_cqm(c, Q, A, b, var_types, bounds, timeout=30)
solver.solve_maxsat(clauses, num_variables, timeout=30)
solver.solve_pbo(objective, constraints, num_variables, timeout=30)
solver.solve_wcsp(num_variables, domains, functions, timeout=30)
solver.solve_potts(num_nodes, num_states, edges, timeout=30)
Features
- Solver Racing — Race multiple solvers in parallel, return the best
- AI Advisor — Automatic solver recommendation
- NL Builder — Describe problems in English, get a formulation
- Explainability — Understand why a solution is optimal
Links
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file admiral_solver-2.0.3-py3-none-any.whl.
File metadata
- Download URL: admiral_solver-2.0.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5881789eda34fd5bb1eed9f0e4674bca7ed48c643e59c9c1c7753121df57f538
|
|
| MD5 |
e39243f2eb0cd8012cfa63ed4fa0d5e8
|
|
| BLAKE2b-256 |
a25e704faa81b1d5c28970f08fb9a463f42f3c25f30b2a8d54ef53811e350777
|