Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with continuation of Neimark-Sacker point #164

Open
LEquinoxy opened this issue Jul 10, 2024 · 11 comments
Open

issue with continuation of Neimark-Sacker point #164

LEquinoxy opened this issue Jul 10, 2024 · 11 comments

Comments

@LEquinoxy
Copy link

Hi again!
My problem is related to the ODE in #155: (1) I cannot get the norm form of Neimark-Sacker point (SingualarException will appear); (2) If i passing detect_codim2_bifurcation=2, I cannot continue the Neimark-Sacker point (SingualarException will appear); (3) If i passing detect_codim2_bifurcation=0, the Newton iteration seems extremely slow. What can I do to fix these problems? Please find details in the attachment (the calculation of the Neimark-Sacker point may takes about 10min).
issue with continuation of neimark-sacker point.zip

@rveltz
Copy link
Member

rveltz commented Jul 10, 2024

are you at JuliaCon by any chance?

@LEquinoxy
Copy link
Author

I'm currently in China and unable to attend JuliaCon. 😭 😭 😭 😭

@rveltz
Copy link
Member

rveltz commented Sep 4, 2024

did you progress on this?

@LEquinoxy
Copy link
Author

LEquinoxy commented Sep 26, 2024

Sorry for the delayed response! I’ve been working on averaging the original system to obtain a equilibrium-type steady-state for faster continuation, but I'm still curious about why the continuation of the ns point fails. I’ve divided the entire system into two separate parts: the Sending End ODE_LCC_PO and the Receiving End ODE_MMC_PO . The former is significantly stiffer. However, I found that I can calculate the normal form of the Sending End system, but not for the Receiving End system. It seems to get stuck during the initial guess calculation when attempting to continue from the ns point. Please see the details in the attachment. Are there any additional setting that can help the continuation?
BF.zip

@rveltz
Copy link
Member

rveltz commented Oct 1, 2024

I think your system is very stiff and shooting is not giving you what you think. You should try different solvers at lower tolerance and see if the periodic orbit is correctly captured.

@LEquinoxy
Copy link
Author

Thank you for your suggestion! I have one more question, and then perhaps you can close this issue.
From an engineering perspective, certain parameter changes may not lead to significant variations in the periodic orbit. Therefore, some researchers skip the continuation step and directly use the initial periodic orbit to calculate system stability for each parameter. I would like to try using this less precise method of skipping continuation in your BifurcationKit for comparison. Should I just modify the tol in Newton'Par to a large value (like 100)? However, I've noticed that the norm(xtt[:, end],2) still changes for each parameter. Could you provide me with some guidance? Thank you very much!

@rveltz
Copy link
Member

rveltz commented Oct 3, 2024

Screenshot 2024-10-03 at 1 18 37 PM

This part has piecewise constant part, not sure what newton will give, that's my point.

@rveltz
Copy link
Member

rveltz commented Oct 3, 2024

I would like to try using this less precise method of skipping continuation in your BifurcationKit for comparison. Should I just modify the

Note sure what you mean. I tend to think that the Shooting continuation of your system is OK (in term of precision) but I question the Floquet exponents. Hence, if this is fast enough for your, I would keep the PALC if you can.

@LEquinoxy
Copy link
Author

What I mean is that instead of using PALC(or other methods) to locate the periodic orbit, We
may directly assume that the periodic orbit remains unchanged under parameter variations (i.e., the initial periodic orbit) (in engineering aspect) and then calculate the system's bifurcations. Currently, I'm adjusting tol to a large value so that the first step of the Newton iteration always satisfies the convergence condition for each parameter. The codes related the Norm are shown in Fig 1
EDIT_20241003_194124.png
Fig 1

The bifurcation digram with tol=100 is shown in Fig 2,
EDIT_20241003_210949.png
Fig 2

Since the periodic orbit remains unchanged under parameter variations, the corresponding bifurcation diagram should be a straight line, which is clearly different from the results in Fig2. Therefore, simply increasing tol may not be sufficient?

@rveltz
Copy link
Member

rveltz commented Oct 3, 2024

PALC following the periodic orbits does not seem to be a problem here (so I would not use the constant scheme you are describing). What is more troublesome is the computation of the stability of the periodic orbits. You have to compute the eigenvalues of the derivative of shooting map. However, some components are constant almost everywhere and the precision of the shooting might miss the corresponding eigenvalues. Hence, the detection of bifurcations does not seem very robust for this system and the NS you are seeing is maybe due to lack of precision.

@LEquinoxy
Copy link
Author

I see. I will try different solvers and lower tolerances, hoping for some progress😭. You can close this issue for now. Thank you sosososo much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants