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 (GR) 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 (RT) of the output current (I grid ) of the converter, wherein the predefined reference tracking (RT) 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 (NF) of the AC sub-grid (GR), the reference tracking (RT) 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 (DR) describing the rejection of the injected disturbance voltage (V dist ), wherein the disturbance rejection (DR) 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 (NF), 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 (RT) and the disturbance rejection (DR), 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 (GR) 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 (GR) 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 (RT) of the output current (I grid ) of the converter, wherein the predefined reference tracking (RT) 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 (NF) of the AC sub-grid (GR), the reference tracking (RT) 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 (DR) describing the rejection of the injected disturbance voltage (V dist ), wherein the disturbance rejection (DR) 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 (NF), 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 (RT) and the disturbance rejection (DR), - 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 ; <EOS>