New: optimaldynamics