I want to solve the following problem: $$\min\limits_{\bf u} \frac{\bf c^T {\bf x} (T_f)}{\| \bf c\|\|{\bf x} (T_f)\|}$$
subject to
$$\dot{\bf x} (t) = A {\bf x}(t) + B {\bf u}(t)$$
$$x(0) = x_0$$
where ${\bf c} =(1, 1, \cdots, 1)^T \in \mathbb{R}^n$, ${\bf x} \in \mathbb{R}^n$, $A \in \mathbb{R}^{n \times n}$, $B \in \mathbb{R}^{n\times q}$ and ${\bf u} \in \mathbb{R}^q$. The $x_0 \in \mathbb{R}^n $ denotes the initial state of the system and $T_f \in \mathbb{R}$ is the ternimal time which could be $\infty$. We choose Euclidean norm for $\|\cdot\|$.
Is there a standard solution for such a formulation and any solvers can help? thanks.
As answered on the YALMIP forum, what you want to do is to drive the state to a configuration where $x(T_f) = -\gamma c$ for some non-negative $\gamma$, as this will yield the minimal objective $-1$. If the system is controllable, this can be done for any choice of $T_f$ (and $\gamma$). By working with the Gramians, you should be able to derive an explicit control law using standard controllability arguments (see, e.g., Linear systems theory by Rugh)