Error when simulating an adaptive control system with an inverse reference model: Derivative is not finite.
Afficher commentaires plus anciens
Hello, I am modeling an adaptive control system with an inverse reference model. When running the simulation, an error appears:
"An error occurred while running the simulation and the simulation was terminated
Caused by: Derivative of state '1' in block 'Laba_1_Simulation/Transfer Fcn' at time 1.4399611326326742 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)".
What could be the reason and what is the solution?

K1 = 2000;
K2 = 1;
Kk1 = 0.0012;
T1 = 0.2;
T2 = 0.005;
Tk1 = 0.0001;
T3 = 0.1;
Kt = 0.5;
Réponse acceptée
Plus de réponses (1)
Daniel
le 24 Avr 2023
1 vote
The derivative to a transfer function is the input. So the error is indicating that the input to the highlighted block is not finite, perhaps as a result of something growing out of control.
When I replicate the system, I see that the system does indeed grow without bound. If you look at your Scope output, you'll see that the last value shown is around
. When you have nonconverging behavior like that, you'll want to look at all your transfer functions and inputs. Make sure the model is correct. You might particularly want to check the signs of the coefficients in all the transfer functions, where each transfer function is using an s vs a 1, and the signs in your sum block.
2 commentaires
Anton
le 24 Avr 2023
Daniel
le 24 Avr 2023
That's going to depend a lot on the assigment. The assignment should point you in the right direction to obtain a transient, whether directly or by referencing previous classroom material. I'm personally happy to help with Simulink mechanics, but my expertise is in FPGA design and it's been a while since I dealt with analog electronics in school.
If you have any more Simulink questions (such as "I thought this Simulink block modeled this mathematical representation, but something is going wrong" or "why am I getting this error"), we'll be happy to help you. It might be easiest to post any such things as a new question, as I believe we've answered your original question about non-finite derivatives at this point.
Catégories
En savoir plus sur Simulink dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



