Title: Optimal and self-optimizing control