I am pretty new to the theory and application of optimal control. However, I am curious as it is not mentioned in the textbook that I use. Is it possible to optimize $u(t)$ such that we can obtain a desired (forced) result?
For example, if I have a system $x'(t) = g(t,x,u)$ and I want to vary $u(t)$ to force $x(t)$ to move along a path $\bar{x}(t)$ over $t\in[t_0,t_1]$, how should I go about doing so?
Furthermore, if the problem is discrete $\bar{x}(t_n)$, where $t_n$ is the time point, how should I go about doing so?
Any references, especially with application to biology, would be appreciated!
For 1, consider an objective function like $$ \int_{t_0}^{t_1}(x(t)-\bar{x}(t))^2 dt, $$ so you are minimizing the squared deviation from the preferred path, subject to $x'(t) = g(t,x,u)$, presumably given $x_0$. Then your Hamiltonian is $$ H(x,u,\lambda,t) = (x(t)-\bar{x}(t))^2 - \lambda(t) g(t,x,u). $$ At this level of generality, Pontryagin's necessary conditions are not sufficient, and you would have to pick a law of motion for the state variable or sufficient assumptions that you could check the second-order conditions for an optimal control problem (Arrow or Mangasarian concavity of the Hamiltonian).
You might need to introduce a cost function for $u(t)$ to ensure that the solution isn't trivial, like "set $x(t)=\bar{x}(t)$". In