Turn slTuner into genss

3 次查看(过去 30 天)
Cedric Kotitschke
Cedric Kotitschke 2024-9-20
When using a slTuner object, I can call methods like getIOTransfer to get the closedloop and getLoopTransfer to get the openloop transfer function. However, this is also possible with genss objects: getIOTransfer is not necessary because we already have the closedloop system but getLoopTransfer is possible if the genss objects has the appropriate analysis points defined.
Now my question:
Is it possible to convert the sltuner into a genss object such that I have all inputs, outputs and analysis points as defined in the slTuner object? I haven't found anything on this yet.
If you're wondering why I would need this:
I have a function that takes in genss objects and call getLoopTransfer on them but this genss object could come from anywhere. Set up from scratch, custom linearization of simulink models (we have our custom routine). However, when I linearize a simulink moodle using sltuner, I can't use this function.
Thanks for your help!

回答(1 个)

Manikanta Aditya
Manikanta Aditya 2024-10-9
编辑:Manikanta Aditya 2024-10-9
Hi Cedric,
Looks like we can convert an slTuner object into a genss object while preserving all the inputs, outputs, and analysis points defined in the slTuner object.
This can be done using the getIOTransfer and getLoopTransfer methods to extract the necessary transfer functions and then constructing a genss model from these components.
Try the following steps and see if you can acheive the requirement you have:
  1. Extract Transfer Functions: Use the getIOTransfer and getLoopTransfer methods to get the transfer functions from the slTuner object.
  2. Define Analysis Points: Ensure that the analysis points are correctly defined in the genss object.
  3. Construct the genss Model: Use the extracted transfer functions and analysis points to construct a genss model.
Refer to the following reference to know about 'genss':
Hope this helps.
  2 个评论
Cedric Kotitschke
Cedric Kotitschke 2024-10-9
and how exactyl do you construct the genss object? getIOTransfer loses the analysis points and getLoopTransfer loses the inputs and outputs
Manikanta Aditya
Manikanta Aditya 2024-10-9
Hi,
I agree, you’re right, using getIOTransfer and getLoopTransfer separately can result in losing either the analysis points or the input/output definitions.
For constructing the genss object, we can the try to use the linearize the function (linearize - Linear approximation of Simulink model or subsystem - MATLAB - MathWorks India) to get the linearized model from the slTuner object.
Then use the genss function (genss - Generalized state-space model - MATLAB - MathWorks India) to covert the linearized model into a generalized state space model.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Multiloop, Multiobjective Tuning 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by