
Jaxonomy — hybrid dynamical systems on JAX
io.github.machinavitalis由 GitHub 账号 machinavitalis 发布v3.4.1更新于 Oct 27, 2026
Build, simulate and calibrate JAX block-diagram models of hybrid dynamical systems.
概览
把 Jaxonomy 的 JAX 仿真引擎封装为工具,让助手能构建、校验、仿真、拟合与线性化混合动力系统模型。
- 可以做什么
- 列出可用于建模的内置库模块
- 构建并校验混合动力系统的框图模型
- 运行仿真并返回结果信号供助手分析
- 将模型参数拟合到数据,并对系统做线性化
- 把仿真结果交回助手,使其基于真实输出进行推理
- 适用场景
- 当你通过 Claude Desktop、Claude Code 或 Cursor 等 AI 代理驱动 Jaxonomy,并希望代理自行搭建和运行模型时使用。若你手写 Python 代码,直接安装该包即可,无需此服务器。
- 运行要求
- 以本地 stdio 进程在用户机器上运行(仅桌面端)。需要 Python 3.10 及以上,并安装含 MCP 附加组件的 jaxonomy 包,通过模块入口或 jaxonomy-mcp 入口、使用已安装该包的解释器启动。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Jaxonomy — hybrid dynamical systems on JAX,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Jaxonomy
Differentiable simulation of hybrid dynamical systems — powered by JAX.
[PyPI] [Python 3.10+] [License: MIT] [Docs]
Block diagrams meet automatic differentiation. Model physical systems, close the loop with LQR/MPC/Kalman, and differentiate through everything.
Why JAX? · Install · Quick Start · Gallery · Examples · Docs
Every panel above is produced by jaxonomy.simulate on a model built from the library.
What is Jaxonomy?
Jaxonomy is a Python framework for modeling, simulating, and optimizing hybrid dynamical systems — systems that combine continuous physics, discrete control laws, and event-driven logic in a single model. Every simulation runs on JAX, so it is JIT-compilable, batchable with vmap, and fully differentiable from end to end.
🔥 Why JAX?
Choosing JAX as the compute backbone unlocks capabilities that are impractical with NumPy-based simulators:
¹ Simulink + Simscape + Stateflow + Control System Toolbox · ² Via Simulink Design Optimization, no end-to-end AD
⚡ Key Capabilities
📦 Installation
Requires Python 3.10+.
From source:
CLI runner:
🚀 Quick Start
A first simulation in a few lines — a custom block, built into a diagram, integrated through its ODE:
📚 Documentation
- Online docs & tutorials: py.jaxonomy.com
- Local docs:
- Example notebooks:
docs/examples/ - Scope notes: PINNs & PDE surrogates — classical PDE PINNs are out of scope; physics-informed dynamics learning (UDE / Neural DAE / Neural ODE / SINDy) is core.
🤖 Driving Jaxonomy from an AI agent (MCP)
Jaxonomy ships an MCP server that exposes the
engine as tools an AI agent can call directly — it can enumerate library blocks,
build and validate a model, run a simulation, fit parameters to data, and
linearize a system, then reason over the actual results. This is worth wiring up
if you drive Jaxonomy from an agent (Claude Desktop/Code, Cursor, …); if you're
writing Python by hand, the pip install above is all you need and you can skip
this.
Then register the server with your agent client. For Claude Desktop, add to
claude_desktop_config.json:
Use the interpreter where jaxonomy[mcp] is installed (or the jaxonomy-mcp
entry point). The server is listed in the
MCP Registry as
io.github.machinavitalis/jaxonomy; full tool reference, client configuration
and limitations are at py.jaxonomy.com/mcp.
If you'd rather just point an agent at the documentation, start it on
SKILL.md — when to use Jaxonomy, when to reach for something else,
the core API, and the pitfalls that most often break a first script. The docs
site also publishes llms.txt views:
py.jaxonomy.com/llms.txt for an index of
every page, and
py.jaxonomy.com/llms-full.txt for the
whole documentation set as one Markdown file.
📖 Examples
1 · Hybrid Dynamics: The Bouncing Ball
Jaxonomy is designed for hybrid systems — models where continuous physics interacts with instantaneous discrete resets. The bouncing ball is the canonical example: free-fall ODE interrupted by a collision event that reverses velocity.
Governing equations
The dynamics between bounces follow:
$$ \dot{x} = v, \qquad \dot{v} = -g $$
When the ball hits the ground ($x = 0$, $v < 0$) a zero-crossing event fires and the state resets:
$$ x^+ = 0, \qquad v^+ = -e \cdot v \quad (e \in [0, 1] \text{ — coefficient of restitution}) $$
Zero-crossing events are located with 40-step bisection on the solver's dense output polynomial — giving sub-microsecond temporal accuracy without user-specified tolerances.
2 · Optimal Control: LQR Pendulum
For a linearized pendulum with state $x = [\theta, \dot\theta]^\top$:
$$ \dot{x} = Ax + Bu, \qquad A = \begin{bmatrix} 0 & 1 \ g/L & 0 \end{bmatrix}, \quad B = \begin{bmatrix} 0 \ 1/mL^2 \end{bmatrix} $$
The Linear Quadratic Regulator minimizes infinite-horizon cost:
$$ J = \int_0^\infty \bigl( x^\top Q, x + u^\top R, u \bigr), dt $$
by solving the algebraic Riccati equation $A^\top P + PA - PBR^{-1}B^\top P + Q = 0$ for the optimal gain $K = R^{-1}B^\top P$, so $u^* = -Kx$.
3 · Differentiable Parameter Identification
Jaxonomy can differentiate through complete simulations to fit model parameters to data — no finite-difference approximations, no hand-written adjoint code. Here we recover a spring–damper's stiffness and damping by differentiating the whole rollout and descending with Optax:
jax.grad(loss) flows back through every ODE step automatically, so the same recipe scales to battery ECMs (above), powertrains, or any parametric model — and jaxonomy.optimization wraps it in a higher-level Optimizable API when you want bounds, transforms, and constraints.
4 · Acausal Physical Modeling
Jaxonomy includes a Modelica-inspired acausal modeling layer for multi-domain physical systems. You describe component connections symbolically; the compiler automatically derives the governing DAE, reduces its index, and emits a LeafSystem ready to drop into any diagram.
RC circuit with initial conditions:
$$ C,\dot{V}C = I, \qquad V_C(0) = 0,\text{V}, \qquad V{\text{src}} = 1,\text{V} $$
The same pipeline handles multi-domain systems — an electro-mechanical actuator connecting electrical, rotational, and translational domains compiles to a single optimized system.
Available acausal domains: electrical · rotational · translational · thermal · fluid
5 · Differentiable Sensitivity & Batch Simulation
Because jax.grad, jax.jit, and jax.vmap all compose with simulate, you get powerful workflows with minimal boilerplate:
🧩 Library Overview
Over 150 built-in blocks covering the full signal-processing and control toolkit. A representative slice — not exhaustive:
Custom blocks are first-class beyond the wrappers above: subclass LeafSystem, declare ports and states, and your block integrates with the full framework including JIT, autodiff, and event detection.
🏗️ System Architecture
A Jaxonomy model is a Diagram — a directed graph of interconnected blocks. Blocks (LeafSystem) declare ports, continuous/discrete states, and event guards. The simulator orchestrates ODE integration, discrete updates, and event detection automatically.
The JAX backend sits underneath every simulation, giving you a clean Python API backed by XLA compilation:
The Jaxonomy stack
Jaxonomy is the engine at the base of a three-package stack. Each package is its own repository, MIT-licensed, and depends only on the package(s) above it:
- Jaxonomy — this package. The general-purpose, JAX-native simulation engine for hybrid dynamical systems. Not robotics-specific; depends on nothing else in the stack.
- Jaxterity — the robotics layer built on top of Jaxonomy: URDF/MJCF import, MJX-backed articulated dynamics, calibrated actuators/sensors, system identification, and whole-body control. Imports Jaxonomy; never re-implements its primitives.
- Jaxility — the deployment artifact factory: compiles a calibrated robot to embedded C for Arm SoCs (Cortex-A / Cortex-M) with a signed attestation manifest. Consumes Jaxterity.
The boundary rule: anything useful to controls engineers outside robotics (HVAC, battery, aerospace, energy) belongs in Jaxonomy; anything specific to joints, actuators, contacts, and kinematic chains belongs in Jaxterity; embedded codegen, targets, and attestation belong in Jaxility.
What Jaxonomy does not yet do (or does only partially) is tracked in
KNOWN_GAPS.md — the public inverse of the internal evidence
ledger in CLAIMS.md.
License
Released under the MIT License from version 2.2.0 onward.
Derived from the MIT-licensed open-source package pycollimator by Collimator, Inc.
来源:README.md,提交 f615a73
工具
0版本历史
1- v3.4.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分