Updated optimization_euler