← Lesson diary · Process Identification and Control
Process Identification and Control · Lesson 6
The charging area of the case study, run for a full day. Vehicles arrive and recharge, the photovoltaic plant produces what it produces, and a storage system is the only thing the controller can act on. The question is how much power ends up crossing the point of connection — which is what the capacity part of the bill is paid on. Everything is computed in your browser while the day runs.
| Operation | Peak |p| at the POC | Time beyond the limits | Energy taken from the grid | Energy sent back |
|---|---|---|---|---|
| Without storage | — | — | — | — |
| With MPC | — | — | — | — |
The peak is the number that sizes the connection and the capacity part of the bill, so it is the one to watch.
The same formulation written in class, and the same one in the Julia code: sign convention of the consumer, so power consumed is positive and u > 0 charges the storage.
Sampling time T = 60 s, one step per minute, 24 hours. Only u1 is applied, then the whole problem is rebuilt one minute later. Because p is an affine function of u, the limits on the power at the point of connection are simple bounds on the control, and what is left is the same quadratic program as in the tank lab.