A method for controlling an internal combustion engine comprising a cylinder, an air guide arranged to guide an air flow to the cylinder, an adjustable air flow restriction element arranged upstream of the cylinder to control the air flow guided through the air guide, an exhaust guide arranged to guide an exhaust flow from the cylinder, an adjustable exhaust flow restriction element arranged downstream of the cylinder to control the exhaust flow through the exhaust guide, and
- 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, and/or
- an engine load, and/or
- a coolant temperature, and/or
- an ambient temperature,
- characterized by
- 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, and/or
- an exhaust mass flow, and/or
- an exhaust manifold pressure, and/or
- an exhaust power, and
- depending on the determined target exhaust performance parameter value,
- controlling the air flow through the air guide and
- controlling the exhaust flow through the exhaust guide.