An on line adaptive control method