Both a squared error and l1-norm objective are compared in moving horizon estimation (MHE). MHE is similar to the Kalman filter but allows nonlinear models and constraints. The example problem is available for download in MATLAB and Python from the Dynamic Optimization course website from http://apmonitor.com/do/index.php/Main/EstimatorObjective