I'm interested in the variational problem $$\min_{y} \int_a^b F(x,y(x),y'(x))dx \qquad \text{subject to} \quad -y'(x)\leq 0 \quad \forall x \tag{1}$$
i.e. $y(x)$ has to be monotonic.
I already know how to solve the unconstrained problem using the Euler-Lagrange equation and I have a vague idea of solving non-variational inequality-constrained optimization problems (Lagrange multipliers, Karush-Kuhn-Tucker conditions), but how should I go about solving an inequality-constrained variational problem?
Maybe use the Euler-Lagrange equations on the following:
$$\int_a^b F(x,y(x),y'(x)) - \lambda(x) y'(x) dx$$
and then check if $\lambda(x)$ is negative anywhere, but then how do I proceed?