Abstract
Write the equations once. Simulate, analyze, control, plan, optimize, learn.
Minilink is an open-source Python framework for dynamical systems, control, optimization, and learning.
Write a physical model once in pure textbook ODE equations as the core object in Minilink: a
System. Compose models and blocks into complex block diagrams, which are also just new
Systems. This unified System is the standard interface to all tools: classical
and modern control, optimal control (DP, RRT, trajectory optimization, MPC, MPPI), machine learning
(neural networks, reinforcement learning), and parameter optimization.
Three mathematical foundations hold the framework together:
- The Model (
System): continuous differential equationsdx/dt = f(x, u, t; p), observationsy = h(x, u, t; p), and 3D posesT = tf(x, u, t; p). - The Task (
PlanningProblem): the model paired with boundary sets (X, U, Xf), costJ, and time horizontf. - The Solver Boundary (
MathematicalProgram&Optimizer): standard nonlinear programmin J(z; p) s.t. g(z; p) ≤ 0, h(z; p) = 0connecting problems to plug-and-play numerical solvers.
All core equation paths are pure functions — arrays in, arrays out — allowing the exact same code to run on a minimalist NumPy/SciPy/Matplotlib setup or a high-performance JAX backend to compile, batch, and autodifferentiate the same equations. Minilink is the successor of Pyro.
Continuous Core & Diagrams as Code
Functional purity means equations are stateless: no simulation time or state is mutated on
self. Wiring blocks together with algebraic shortcuts —
ctrl @ plant (feedback), a >> b (series), a + b (parallel),
sys % Δ (zero-order hold sampling) — yields a new System that
flattens to one state vector and one f.
Because a composite diagram is itself a DynamicSystem, every analysis verb works
identically on closed loops: loop.linearize(), loop.bode(),
loop.nyquist(), loop.root_locus(), loop.pzmap(),
loop.step_response(), and loop.kalman().
Differentiable & Accelerated with JAX
The exact same equation f(x, u, t; p) traces under JAX without rewriting physics. One
evaluator provides exact machine-precision sensitivities, GPU-batched rollouts via vmap,
and closed-loop objective gradients ∇J connecting into the unified
MathematicalProgram and Optimizer boundary (gd,
adam, l-bfgs, slsqp, ipopt):
Measured on an Apple M4 Max: 1,000 rollouts of 1,000 RK4 steps take 27 ms as a compiled batch versus 32 s in pure Python.
One Problem, Every Planner
A PlanningProblem bundles the physical plant, boundary sets, cost function, and horizon.
The identical problem definition is handed to distinct solver paradigms — Dynamic Programming (VI),
Tree Search (RRT), Trajectory Optimization (direct collocation & shooting), Model Predictive Control
(MPC / MPPI), and Reinforcement Learning (PPO / SAC) — and every planner returns a
PlanningSolution whose policy closes the loop via policy @ plant:
Publications & Resources
Project Media

