Incorrect identified system equations for a coupled system with symmetric coefficients #302
-
How can I resolve the issue of SINDy identifying incorrect system equations for the following system:
Here's my code
If I take
I've tried using STLSQ, SR3 and SSR but all have the same issue. How do I resolve this? Am I supposed to impose the constraints: I tried doing this but I didn't understand the documentation. Additionally the documentation has broken links that don't lead anywhere. Most links on the following page are broken. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
We are fixing the links, but I cannot debug your issues without seeing the code you are running |
Beta Was this translation helpful? Give feedback.
-
There is nothing wrong with your code -- it is the physics you need to check. You have chosen an initial condition that guarantees x1(t) = x2(t) for all time (plot the trajectories and you will see) and therefore x1' = 0.5 * x1dot + 0.5 * x2dot is correct. Try with the initial condition [1, 0, 3, 0] and your problem will fix itself. Best, |
Beta Was this translation helpful? Give feedback.
There is nothing wrong with your code -- it is the physics you need to check. You have chosen an initial condition that guarantees x1(t) = x2(t) for all time (plot the trajectories and you will see) and therefore x1' = 0.5 * x1dot + 0.5 * x2dot is correct.
Try with the initial condition [1, 0, 3, 0] and your problem will fix itself.
Best,
Alan