OCFE is a method to discretize a set of ordinary differential equations into a system of linear equations using interpolating polynomials (Liebman et al., 1992).
In this submission, OCFE is performed using the CSTR example from Ref. . It is part of a set of codes for Ref. , a 2015 MSc thesis that aims to use evolutionary algorithms (i.e. PSO) to solve the nonlinear dynamic data reconciliation optimization problem. The appendix section from the thesis that explains the method is also included in the submission.
 Liebman et al. (1992). Efficient Data Reconciliation and Estimation for Dynamic Processes Using Nonlinear Programming Techniques. Comput. Chem. Eng., 16(10), 963-986.
 Pilario, Karl Ezra S. (2015). Nonlinear Data Reconciliation with Gross Error Detection
and Identification for Steady-state and Dynamic Processes. MSc Thesis. Chemical Engineering, University of the Philippines - Diliman.
Karl Ezra Pilario (2020). Orthogonal Collocation on Finite Elements - CSTR Example (https://www.mathworks.com/matlabcentral/fileexchange/72505-orthogonal-collocation-on-finite-elements-cstr-example), MATLAB Central File Exchange. Retrieved .
Corrected some typos. Added a document that explains the method.