Given a linear time-invariant system:
$$ \dot{x}(t)=Ax(t)+Bu(t) $$
with initial state $ x(0)=x_0 $ and final state $ x(T)=x_T $.
The performance measure to be minimized is:
$$ \int_{0}^{T} ((x_T-x(t))^T(x_T-x(t))+u(t)^Tu(t) dt $$
$(x_T-x(t)) $ is the difference between the state of the system at time $ t $ and the final state. I want to compute an optimal control $ u^* $ that induces a transition from the initial state $x_0 $ to the target state $x_T$. This is a LQR.
So if I let
$$ A=\begin{bmatrix} -1 & 0.5 \\ 0.3 & -1 \end{bmatrix}, B=\begin{bmatrix} 1 \\ 1 \end{bmatrix} $$ and let the initial state be $ x_0=\begin{bmatrix} 1 \\ 0 \end{bmatrix} $ and the final state be $ x_T=\begin{bmatrix} 0 \\ 1 \end{bmatrix} $.
What would be the optimal control trajectories in this specific case? I know there are some functions in mathematica for control theoretical application, but I have zero experience using them and just started to get deeper into this topic.
I would appreciate any help on this!