Adaptive controllers and optimal controllers are two distinct methods for the design of automatic control systems. Adaptive controllers learn online …