optimization-based simulation