A method for controlling an internal combustion engine comprising a cylinder, an exhaust guide arranged to guide an exhaust flow from the cylinder through a turbine of a turbo charger, wherein an adjustable exhaust flow restriction element is arranged between the cylinder and the turbine and arranged to control the exhaust flow guided through the exhaust guide, and a bypass guide arranged to bypass a bypass flow from the cylinder past the turbine, wherein an adjustable bypass flow restriction element is arranged downstream of the cylinder to control the bypass flow guided through the bypass guide, the method comprising the steps:
- determining a value of at least one engine operation parameter, wherein the at least one engine operation parameter is at least one of the following:
- an engine speed,
- an engine load,
- a coolant temperature, and
- an ambient temperature,
- and
- determining a target value of an exhaust performance parameter depending on the determined engine operation parameter value, wherein the exhaust performance parameter is at least one of the following:
- an exhaust temperature,
- an exhaust mass flow,
- an exhaust manifold pressure, and
- an exhaust power and
- depending on the determined target exhaust performance parameter value,
- controlling the exhaust flow through the exhaust guide and
- controlling the bypass flow through the bypass guide.