EASY QUESTION ABOUT THE lsqlin COMMAND: Is it possible to use the lsqlin algorithm for MIMO systems (always with linear constraints)?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
DAMIANO
am 11 Nov. 2022
Bearbeitet: Bruno Luong
am 18 Nov. 2022
I have seen that lsqlin is usually used for SISO systems, but is it possible to use it also with MIMO systems always having linear constraints?
2 Kommentare
Jon
am 11 Nov. 2022
Bearbeitet: Jon
am 11 Nov. 2022
I'm not sure what you mean by SISO (single input single output) and MIMO (multiple input multiple output) systems in this context.
lsqlin finds the "best" solution to the equation Cx =d subject to linear constraints on the variable x. Are the elements of x each an "input" if so then there are certainly multiple inputs. Are the elements of the result Cx considered "output" if so there are multiple outputs. So would you consider this to be MIMO?
Akzeptierte Antwort
Walter Roberson
am 11 Nov. 2022
If you have two systems, A1, A2, B1, B2, and want to match A1*x1 = B1 and A2*x2 == B2 for independent sets x1 and x2, then you can generally do that in a single call by constructing blkdiag(A1,A2) and blkdiag(B1,B2) . This will not necessarily be any faster than doing the two separately and runs the risk that a singularity in one of them could spill over into computing the other one.
It is not necessary that the systems be completely independent -- but if they are not independent then blkdiag() by itself is not going to create the correct matrices.
Weitere Antworten (1)
Bruno Luong
am 18 Nov. 2022
Bearbeitet: Bruno Luong
am 18 Nov. 2022
As long as you have a linear least-squares model, linear equality and inequality constraints then yes you can use lsqlin, as clearly stated by the doc page.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Linear Least Squares finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!