Patent attributes
An exemplary electrical converter includes a plurality of semiconductor switches. The electrical converter is configured for generating a two-level or multi-level output voltage from an input voltage by switching the plurality of semiconductor switches. A method for controlling the electrical converter includes receiving a reference electrical quantity (iS*) and an actual electrical quantity (iS), determining a sequence of future electrical quantities of the electrical converter from the actual electrical quantity, determining a maximal cost value based on the sequence of future electrical quantities, and iteratively determining an optimal switching sequence for the electrical converter. A switching sequence includes a sequence of future switching states for the semiconductor switches of the electrical converter. The method also includes selecting the first switching state of the optimal switching sequence as the next switching state (u) to be applied to the semiconductor switches of the electrical converter.