“…In the non‐LQ case, state constraints of the dynamics, such as non‐negativity of the outflow discharge and water volume, are additionally considered. Control with state constraints is well‐studied for dynamic programming 42,58,59 . However, it has not been well‐studied for maximum principle; especially, the boundary discontinuity of the admissible range of controls hinders us from directly applying it to solving optimal control problems.…”