Tracking necessary condition of optimality by a data-driven solution combining steady-state and transient data. (October 2022)