Safe model‐based reinforcement learning for nonlinear optimal control with state and input constraints | Synapse