Solving an algebraic loop / iterative loop in MATLAB
Ältere Kommentare anzeigen
Hello everyone!
I have the following problem: I have an iteration loop, that has to converge to a certain value of a vector x, where during the loop the iteration
is calulated directly from
with a nonlinear function f. At some point
is fulfilled (the "distance" between both vectors is smaller than a predefined tolerance value) and the iterations can stop.
I found, that in Simulink this would be called an "algebraic loop" and that simulink can solve this (i also made use of that in the past). The thing now is, that i have this in a matlab code. For now, this is solved with a self-made variable gain controller and a feedback loop.
I was wondering, if there is some way to solve this with matlab onboard tools. In most cases i think that onboard tools are more reliable and faster than self-coded stuff is. I am looking for something like
x = iterate(@f,x0,opts);
that does this.
Any ideas?
Thanks a lot and best wishes so far
Thomas
3 Kommentare
darova
am 23 Jun. 2020
maybe fsolve or fzero
Thomas Ewald
am 23 Jun. 2020
Bearbeitet: Thomas Ewald
am 23 Jun. 2020
Thomas Ewald
am 23 Jun. 2020
Antworten (0)
Kategorien
Mehr zu Surrogate Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!