Criteria and penalty functions
Criterion for goal levels:
Quadratic cost for differences of goal points from regulated water levels
Penalty outside the goal interval:
Quadratic difference from the limits (min or max)
Penalty for violation of change
in outflow rate:
Quadratic cost outside the maximum flow limit, otherwise zero