Pātuhitia tēnei: Dynamic programming in chemical engineering and process control