Model Predictive Control for Pendulum-v0 Naive MPC uses the real model for simulation. Learning MPC uses a learned system dynamics with neural network for simulation. Installation pip install numpy matplotlib gym pip install mxnet (or mxnet-cu90 which corresponds your cuda version) Examples: Naive MPC with different rollouts and horizon: