Adaptive control algorithm&quot