Hacker News new | past | comments | ask | show | jobs | submit

Model Predictive Control in the Browser with WebAssembly

https://garethx.com/posts/cart-pole-mpc/
loading story #42072122
I'd be interested, if any one had suggestions, on MPC applied to ML/AI systems -- it seems this is an underserved technique/concern in MLEng, and I'd expect to see more on it.
Author of the post here - happy to answer any questions.
loading story #42065649
loading story #42065216
Here's a (hacky) demo of MPC using MuJoCo in the browser: https://klowrey.github.io/mujoco_wasm/

I hacked it using MPPI and it only works on the cartpole model so as to not have to dwell in Javascript too long; just click the 'MPPI Controller' button and you can perturb the model and see it recover.

I love this kind of stuff because it seems like a roughly equal blend of art, science, and engineering.