The paper addresses an optimization-based reference calculation method for Modular Multilevel Converters (MMC) operating in normal and constrained situations (when the converter needs to prioritize its quantities as it has reached voltage or current limitations, e.g. during system faults). optimization problem prioritizes satisfy external AC active reactive set-points demanded by grid operator ...