MATLAB Solve Riccati (DARE) with MATLAB

  • Thread starter Thread starter perplexabot
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion centers on defining the arguments for MATLAB's dare() function, with a focus on a specific mathematical formulation. The user presents a complex equation related to the dare() function and outlines their variable definitions, seeking confirmation of their correctness. They express confusion over the results obtained from running their code, indicating that the output did not meet their expectations. Other participants suggest testing the results to verify the solution and encourage the user to clarify their DARE formulation. Additionally, links to MATLAB tutorials for both continuous (care) and discrete (dare) cases are shared to assist in understanding the function better. The conversation emphasizes the importance of validating the output against expectations and refining the DARE formulation.
perplexabot
Gold Member
Messages
328
Reaction score
5
Hey all, I was wondering if you can help me define the arguments for the dare() function of matlab. Here is the DARE form I have:
<br /> \begin{equation}<br /> \begin{split}<br /> \Phi(p_\infty) &amp;= \Phi_\infty = \Phi_{33}-\Phi_{32}(\Phi_\infty+\Phi_{R})^{-1}\Phi_{23}\\<br /> &amp;=\Phi_{33}+\Phi_{32}\Phi_{R}^{-1}\Phi_\infty\Phi_{R}^{-1}\Phi_{23}-\Phi_{32}\Phi_{R}^{-1}\Phi_\infty(\Phi_\infty+\Phi_{R})^{-1}\Phi_\infty\Phi_{R}^{-1}\Phi_{23}-\Phi_{32}\Phi_{R}^{-1}\Phi_{23}<br /> \end{split}<br /> \end{equation}<br />

Here is how MATLAB's dare() function works.

Here is how I defined my variables: E = I, B = I, R = \Phi_R, Q = \Phi_{33}, S=\Phi_{32}, , A = 2\Phi_R^{-1}S^T.

Is this correct?
Thank you : )

PS: Please let me know if this thread belongs elsewhere, as I would like to maximize feedback from the PF community.
 
Physics news on Phys.org
perplexabot said:
That's the same link I provided in my original post : (

Sorry I didn't see as it was hidden in the "Here" text.
 
jedishrfu said:
Sorry I didn't see as it was hidden in the "Here" text.
No problem! I still appreciate the fact that you are trying to help. Thank you.
 
Have you tried to run your code? If so, what was wrong with the answer?

You could try taking the answer and testing to see if it is the solution to gain confidence in what Matlab returned.
 
jedishrfu said:
Have you tried to run your code? If so, what was wrong with the answer?

You could try taking the answer and testing to see if it is the solution to gain confidence in what Matlab returned.
I have run my code. I got an answer but I am confused with the result as it is not as I expected. I am trying to figure out why the answer is what it is. I was wondering whether my DARE formulation was correct (hence, why I have this post).
 

Similar threads

Replies
4
Views
961
Replies
2
Views
721
Replies
4
Views
7K
Replies
11
Views
2K
Replies
5
Views
5K
Replies
9
Views
2K
Back
Top