Ross ROSS = Recommend OSS · open-source software intelligence for agents

locuslab/mpc.pytorch

A fast and differentiable model predictive control (MPC) solver for PyTorch. observed · 2026-08-28

github.com/locuslab/mpc.pytorch · homepage · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 2892
  • days_rel: n/a
  • days_push: 736
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1078 stars · 164 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

mpc.pytorch is a fast and differentiable model predictive control (MPC) solver implemented as a PyTorch library. It solves receding-horizon optimal control problems using the box-DDP heuristic and supports gradients flowing through the solver for learning-based applications.

Use cases

  • solve model predictive control problems inside PyTorch models
  • train neural networks end-to-end through an MPC solver
  • implement differentiable MPC for model-based reinforcement learning
  • control simulated robots with receding-horizon optimization
  • reproduce research from the differentiable MPC and OptNet papers

When to choose

  • you need MPC as a differentiable layer in PyTorch
  • you are doing model-based RL research with control priors
  • you want a GPU-friendly, batched MPC solver in Python

When to avoid

  • you need a production-grade, actively developed MPC solver
  • you work outside PyTorch or need non-Python integration
  • you need robust support for hard nonlinear constraints beyond box-DDP

Facets

library · maturity maintenance

machine-learning simulation math machine-learning robotics reinforcement-learning python model-predictive-control differentiable-optimization pytorch optimal-control box-ddp algorithms

2 sources

Member repositories

RepositoryRoleHealth v2
locuslab/mpc.pytorchmain32

For agents

markdown · JSON · MCP: product_card(name="locuslab/mpc.pytorch")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem