Optimisation of tidal range schemes