Intelligent Optimal Adaptive Control for Mechatronic Systems