Գրեք սա: Optimal control theory with applications in economics