1. A method for predictive control of a turbocharger, the method comprising: determining a compressor performance model for a turbocharger; determining at least one current operating parameter; calculating a performance margin according to the at least one current operating parameter and the compressor performance model; calculating a performance margin derivative comprising a rate of change of the performance margin over a time interval; calculating a response value according to the performance margin and the performance margin derivative, the response value comprising a gain value for a control function of the turbocharger; and controlling the turbocharger according to the calculated response value.