A BPTT‐like Min‐Max Optimal Control Algorithm for Nonlinear Systems