An optimal control problem for the continuity equation arising in smart charging - Adrien Seguret (2021)