This paper presents a model-based control and calibration design method for online cost-based optimization of engine-aftertreatment operation under all operating conditions. The so-called Integrated Emission Management (IEM) strategy online minimizes the fuel and AbBlue consumption. Based on the actual state of engine and aftertreatment systems, optimal air management settings are determined for EGR-SCR balancing. Following a model-based approach, the strategy allows for a systematic control design and calibration procedure for engine and aftertreatment systems.The potential of this time efficient method is demonstrated by experiments for a heavy-duty Euro-VI engine. The Integrated Emission Management strategy is developed and calibrated of...