Text this: Optimization Design of Automatic Control Programme for Low-head Shiplock