I am currently trying to replicate the 'Numerical Results' section of the attached paper for my own interest. My current sticking point is solving the below system of ODEs where all the variables are matrecies:
\begin{equation} A'(t)=A(t)M^A A(t)+A(t)U^A+(U^A)^TA(t)+R^A\end{equation}
\begin{equation} B'(t)=A(t)M^A B(t)+A(t)V^B+(U^A)^TB(t)\end{equation}
In the above equations all variables except A(t), B(t), A'(t) and B'(t) are known. A'(t) and B'(t) are the first derivatives of A(t) and B(t) respectively and A(T) and B(T) are their values at terminal time t=T and are known, in my case A(T) is a 4 by 4 martix of zeros and B(T) is a vctor of length 4 of zeros.
As I know the terminal values at time T, I have tried to solve using the implicit Euler method where, where I am stepping back in time a small timestep dt until I reach t=0:
\begin{equation} A(t-1)=A(t) - (A(t)M^A A(t)+A(t)U^A+(U^A)^TA(t)+R^A) *
dt\end{equation}
\begin{equation} B(t-1)=B(t) - (A(t)M^A B(t)+A(t)V^B+(U^A)^TB(t)) * dt\end{equation}
However, the solutions I am producing at t=0 don't seem to match the output of the paper. So my question is this. Can I use the Euler method in this manor to solve for an entire matrces A(0) and B(0) or am I missing something? Any advice will be greatly appreciated.
I have attached a picture with the matrix definitions and detailed the the variables within them below:
\begin{equation} \alpha_{2} = 0.741 \end{equation}
\begin{equation} \gamma = 3 * 10^{-4}\end{equation}
\begin{equation} n^S= 7 * 10^{-8}\end{equation}
\begin{equation} n^F= 3 * 10^{-8}\end{equation}
\begin{equation} K_E= 8\end{equation}
\begin{equation} K_D= 0\end{equation}
\begin{equation} \Sigma = \begin{bmatrix}
19600 & 0 & 0 \\
0 & 25 & 0 \\
0 & 0 & 0 &
\end{bmatrix} \end{equation}
\begin{equation} \sum_{}^{tilde} = \begin{bmatrix}
25 & 0 \\
0 & 0
\end{bmatrix} \end{equation}