A tutorial on event-based optimization—a new optimization framework