Online adaptive algorithm for optimal control with integral reinforcement learning | Synapse