The constraints of the optimization problem are imposed on the gate position, so that the sluice gate opening must not be greater or smaller than Umax or Umin, respectively, and the gate movements between successive regulation periods (dUmax) should be physically acceptable (Table 6).