主权项 |
1. A method for controlling a grid-connected energy source or energy system, comprising:
providing a grid-connected pulse-width modulated (“PWM”) converter operably connected between an electrical grid and an energy source; providing a control system operably connected to the grid-connected PWM converter, the control system comprising a nested-loop controller and an action neural network, wherein a d-axis loop of the nested-loop controller controls real power and a q-axis loop of the nested-loop controller controls reactive power; receiving a plurality of inputs at the action neural network, wherein the plurality of inputs comprise:
a d-axis current, id,a q-axis current, iq,a d-axis error signal, wherein the d-axis error signal comprises a difference between id and a reference d-axis current, id*,a q-axis error signal, wherein the q-axis error signal comprises a difference between iq and a reference q-axis current, iq*,an integral of the d-axis error signal, andan integral of the q-axis error signal; outputting a compensating dq-control voltage from the action neural network, wherein the action neural network is configured to optimize the compensating dq-control voltage based on the plurality of inputs; and receiving the compensating dq-control voltage in the nested-loop controller, wherein the control system is configured to control the grid-connected PWM converter using the compensating dq-control voltage. |