Skip to main content

Python SDK for Admiral — combinatorial optimization platform. 11 problem types, 33 solvers, solver racing, AI advisor, NL builder.

Project description

Admiral

Admiral Solver

Python SDK for the Admiral Combinatorial Optimization Platform
11 problem types · 33 proprietary algorithms · Solver racing · AI advisor · NL builder

PyPI Python Platform Docs


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]],
    timeout=10,
    race=True
)
print(result.energy)     # -13.0
print(result.solution)   # [1, 0, 1]

Features

  • 11 problem types: QUBO, Ising, HUBO, DQM, CQM, MILP, MIQP, MAX-SAT, PBO, WCSP, Potts
  • 33 proprietary algorithms: Auto-selected or raced in parallel
  • Solver Racing: Race up to 8 solvers — first to converge wins
  • AI Advisor: Analyze problem structure, get solver recommendations
  • NL Builder: Describe problems in plain English, get formulations
  • Auto-Detect: Submit JSON data, Admiral identifies the problem type

New in v2.0

# AI Advisor — analyze before solving
analysis = solver.analyze("qubo", {"Q": Q})
print(analysis.complexity)        # "EASY"
print(analysis.recommendations)   # [{solver: "admiral_01", confidence: 0.95}]

# NL Builder — natural language to formulation (powered by AI)
formulation = solver.formulate("Minimize travel between 5 cities")
print(formulation.problem_type)   # "qubo"
print(formulation.explanation)    # {variables: "...", objective: "..."}

# Solver Racing — race all algorithms
result = solver.solve_qubo(Q, race=True)
print(result.race_metadata)       # {solvers_raced: 8, ...}

# Auto-Detect problem type
detected = solver.detect({"Q": Q})
print(detected.detected_type)     # "qubo"
print(detected.confidence)        # 0.95

All Problem Types

Method Type Variables
solve_qubo(Q) QUBO Binary {0,1}
solve_ising(h, J) Ising Spin {-1,+1}
solve_hubo(terms, n) HUBO Binary, higher-order
solve_dqm(domains) DQM Discrete multi-valued
solve_cqm(c, Q, A, b) CQM Mixed with constraints
solve_milp(c, A, b) MILP Mixed integer linear
solve_miqp(c, Q, A, b) MIQP Mixed integer quadratic
solve_maxsat(clauses) MAX-SAT Boolean
solve_pbo(obj, cons, n) PBO Pseudo-boolean
solve_wcsp(n, domains, fns) WCSP Discrete constraint
solve_potts(nodes, states, edges) Potts Multi-state lattice

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

admiral_solver-2.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

admiral_solver-2.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file admiral_solver-2.0.1.tar.gz.

File metadata

  • Download URL: admiral_solver-2.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for admiral_solver-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e136b8a914deb7448fd827f56d61598ffacebc8ba72c21866016076c5cff442d
MD5 68593c9a1b84f3a9c90ff57a4125bc49
BLAKE2b-256 00fbb05ecfacfbfab683a2f3cf4a41a612fa16bae01b30c48d04ed6af4063927

See more details on using hashes here.

File details

Details for the file admiral_solver-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: admiral_solver-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for admiral_solver-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4bc6d347b275687aa928f1361270fec6b0ec860bfb1670217bb31cf3fc92a68
MD5 703a8b7d53f8b0e525dea93eb538d16a
BLAKE2b-256 8e1a79cc6df6a926ea9a05dc8d85c78084575657ce98bdc23f1ceca835f71993

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page