Optimal control of tidal flow. (10th May 2023)