A method of controlling a diesel engine that is capable of multiple
combustion modes and equipped with a turbocharger and EGR loop. The
control method avoids a singularity condition inherent in turbocharged
diesel engine having multiple combustion modes. For different combustion
modes, different system states, control variables, and actuators are
carefully chosen for different controllers based on the characteristics
of the corresponding combustion mode as well as sensor and measurement
limitations.