An integral approach to solve finite-horizon optimal control problems posed by set-point changes in electrochemical hydrogen reactions is developed. The methodology extends to nonlinear problems with regular, convex Hamiltonians that cannot be explicitly minimized, i.e. where the functional dependence of the H -minimal control on the state and costate variables is not known. The Lagrangian functions determining trajectory costs will not have special restrictions other than positiveness, but for simplicity the final penalty will be assumed quadratic. The answer to the problem is constructed through the solution to a coupled system of three first-order quasi-linear partial differential equations (PDEs) for the missing boundary conditions x(T ), (0) of the Hamiltonian equations, and for the final value of the control variable u(T ). The independent variables of these PDEs are the time-duration T of the process and the characteristic parameter S of the final penalty. The solution provides information on the whole (T, S)-family of control problems, which can be used not only to construct the individual optimal control strategies online, but also for global design purposes. electricity. These processes are receiving increasing attention given the recurrent crisis in oil prices, the search for clean energy sources to mitigate global warming, and the current rate of depletion of natural fuels. There exists an extensive bibliography on other fields of research applying HER equations, like in cold nuclear fusion (see [1]), or in the H 2 -decontamination and corrosion of heavy metals ([2] and references therein). As new applications of hydrogen technology are announced, interest is growing in the design, operation, and optimization of industrial devices based on HER systems.The control of fuel cells operation has begun to be studied recently, specially for non-isothermal proton exchange membrane prototypes (see [3]). In all cases dynamic non-linearities have been confirmed experimentally, which suggests that fuel cell technology would