How would we deal with a continuous time optimal control problem with two laws of motion? Suppose we have the following RCK like environment with human capital investment. $$\max_{c(t),k(t),h(t)}\int_{t=0}^\infty e^{-\rho t} u(c(t)) dt$$ subject to: $$\dot{k}(t)=Ak(t)^\alpha h(t)^{1-\alpha}-\delta_k k(t)-h(t)-c(t)$$ $$\dot{h}(t)=Ak(t)^\alpha h(t)^{1-\alpha}-\delta_h h(t)-k(t)-c(t)$$ $$Ak(t)^\alpha h(t)^{1-\alpha}=c(t)+k(t)+h(t)$$ $$u(c(t))=\frac{c(t)^{1-\theta}}{1-\theta}$$
If the logic extends over from an environment with a Lagrangian I'd check the optimal of maximizing over each constraint separately and then verify the solution with it with the other constraint. for example if we were discussing utility maximization with calorie and budget constraints we would conciser only one constraint at a time. In this context however we are looking at laws of motion.
Does the logic change?