Optimal control of grid-interfacing inverters with current magnitude limits is achieved through a nonlinear system approach, improving performance over existing designs.