Implementation of a variety of MPC controllers for temperature regulation of a building. Specifically, the controller tracks the reference temperatures while satisfying safety constraints at all time steps. Modeled using simplified heat flows between the rooms and the environment, the dynamical system is affected by exogenous disturbances, e.g. solar radiation.
Design of a discrete-time infinite horizon Linear Quadratic Regulator for reference tracking. Implementation of an heuristic LQR approach for controller tuning. This method aims at finding diagonal cost matrices such that the LQR minimizes the deviation from the desired stady-state.
Design of MPC controllers with feasibility and stability guarantees in closed loop. Closed loop trajectories will satisfy state and input constraints for all time steps and the target temperatures are asymptotically stable equilibrium points for the closed-loop system. Several variants to this problem are addressed, e.g. different terminal sets will be considered.
Design of a soft-constrained MPC controller. Soft constraints are introduced to tackle the fact that in practice implementations the aformentioned optimization problems can be infeasible despite the theoretical guarantees on the constraints' satisfaction and stability due to model mismatch or unmodeled disturbances.
Disturbances in the heat flows are never known exactly. Therefore, estimation of the actual disturbances is needed to ensure offset-free reference tracking. In particular, in this subtask we have been dealing with a constant but unknown disturbance.
Further info on this programming exercise can be found in "Assignment.pdf". Solutions as well as considerations on the problem itself are instead in "report.pdf".