Tagged real-time-optimization