Systems and methods for controlling turbocharger operation by maintaining a virtual turbocharger speed calculation using airflow parameters in the context of an engine. An example uses a turbocharger speed estimator, an energy observer, and an energy controller. Optimization of turbocharger speed control, including avoidance of overspeed, while reducing wastegate actuation, can be achieved using a predictive control algorithm.