Converter, which is parameterized by means of a method for computer-aided parameterization of the converter in a power grid, comprising the following steps: a) modelling an output current (I grid) of the converter, which is delivered to an AC sub-grid of the power grid, as a function of a predefined reference current (I ref) and an injected disturbance voltage (V dist) based on a model that describes the operation of the converter and comprises a number of parameters (k) of the converter; b) modelling a predefined reference tracking of the output current (I grid) of the converter, wherein the predefined reference tracking reflects how the output current (I grid) follows the reference current (I ref), and wherein, in a first frequency interval close to a predefined nominal frequency of the AC sub-grid, the reference tracking is set in such a way that the output current (I grid) corresponds to the reference current (I ref); c) modelling a predefined disturbance rejection describing the rejection of the injected disturbance voltage (V dist), wherein the disturbance rejection is configured in such a way that the influence of the disturbance voltage (V dist) on the output current (I grid) in a second frequency interval, which is above the nominal frequency, is less than a predefined threshold; d) determining values for the number of parameters (k) of the converter by solving an optimization problem based on an optimization aim consistent with achieving the reference tracking and the disturbance rejection, wherein the following components of the converter: - a PLL circuit; - a dq0 transformation block; - a current controller; - a PWM generator; - a current measurement filter; - a voltage measurement filter; - a power section; - a grid filter; are modelled in the model describing the operation of the converter, and wherein the AC sub-grid is modelled in the model describing the operation of the converter. a) modelling an output current (I grid) of the converter, which is delivered to an AC sub-grid of the power grid, as a function of a predefined reference current (I ref) and an injected disturbance voltage (V dist) based on a model that describes the operation of the converter and comprises a number of parameters (k) of the converter; b) modelling a predefined reference tracking of the output current (I grid) of the converter, wherein the predefined reference tracking reflects how the output current (I grid) follows the reference current (I ref), and wherein, in a first frequency interval close to a predefined nominal frequency of the AC sub-grid, the reference tracking is set in such a way that the output current (I grid) corresponds to the reference current (I ref); c) modelling a predefined disturbance rejection describing the rejection of the injected disturbance voltage (V dist), wherein the disturbance rejection is configured in such a way that the influence of the disturbance voltage (V dist) on the output current (I grid) in a second frequency interval, which is above the nominal frequency, is less than a predefined threshold; d) determining values for the number of parameters (k) of the converter by solving an optimization problem based on an optimization aim consistent with achieving the reference tracking and the disturbance rejection, - a PLL circuit; - a dq0 transformation block; - a current controller; - a PWM generator; - a current measurement filter; - a voltage measurement filter; - a power section; - a grid filter;