An electrical converter comprises at least one of an active
rectifier and an
inverter interconnecting an electrical source with an
electrical load. A method for controlling an electrical converter comprises: receiving at least one estimated
control variable, which is estimated from measurement values measured in the electrical converter; receiving at least one outer
loop control variable provided by an outer control loop, the at least one outer
loop control variable providing a desired steady-state
operation point of the electrical converter; determining a control region based on a
control error, which is a difference between the at least one estimated
control variable and the at least one outer
loop control variable, wherein the control region is defined by one or more intervals of one or more control variables; selecting
control parameters based on the control region, wherein, when the
control error is in an inner control region, first
control parameters are selected, and, when the
control error is outside the inner control region but inside an outer control region, second
control parameters are selected; switching, based on the control error, between two and more control methods, which differ in control parameters, by predicting at least one reference control value based on a solution of a
physical model of the electrical converter, which comprises the selected control parameters, the
physical model being based on differential equations modelling the at least one estimated
control variable and the solution being based on a constraint minimizing a difference between the at least one estimated control variable and the at least one outer loop control variable; and determining switching states of the electrical converter based on the reference control value.