I am getting the error message while Running my code .

Nonlinear iteration is not converging with step size reduced to hmin (3.22191e-17) at time 0.00906886. Try reducing
the minimum step size and/or relax the relative error tolerance

3 Comments

please tell us more about what you are doing.
I am trying to optimize the Kp&Ki value 8 PI controller i.e i have 8Kp and 8Ki to be optimize by PSO and i am getting this responce please help me.
As far as I can see that is a Simulink message, However, the particle swarm algorithms use randomness and so are probably not compatible with using any of the variable step ode algorithms such as ode15s

Sign in to comment.

Answers (0)

Asked:

on 27 Apr 2023

Edited:

on 1 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!