Dynamic optimization of multivariable endothermic reaction in cascade CSTR