Closed hangyao closed 7 years ago
At a first glance, you are using the Mackey–Glass equation with very atypical parameters and initial conditions that do not correspond to them. I am not surprised that the integrator cannot handle this; probably this is not a well-posed problem.
Is this really what you want?
That being said, if your optimizer tests values that lead to ill-posed problems and you want to handle this, the best way is probably to use Python’s exception handling and catch UnsuccessfulIntegration
(which you can import from jitcdde
).
However, this only works if not all problems are ill-posed. In your case, it will just further obfuscate the actual problem.
Thank you @Wrzlprmft ! Yes you are right. My equation and parameters were ill-defined. Now it is working properly.
Hi! I'm trying to do a Particle Swarm Optimization (PSO) on DDE using jitcdde. Here is my code:
However, after few iterations, it is very easy to throw an error message:
Is that something I can avoid by adjusting parameters, such as
set_integration_parameters
? Or is it something I can't avoid at all? Please advise. Thank you!