Example: Train DDPG Agent to Swing Up and Balance Pendulum: Where are mechanical constants initialized ?

1 回表示 (過去 30 日間)
Inside the pendulum block is a gain block with gain 1/( I + (m * L^2) ), where m is the mass of the pendulum, and L is the length of the pendulum.
What is the first term I (an uppercase i) and why is it there ? To my knowledge theta_ddot = torque/( mass * (length^2) )
Additionally where are these constants initialized ?
Similarly, for the gain block with the gain of c, what are the units for this constant and where is it initialized ?
  1 件のコメント
William Rose
William Rose 2023 年 2 月 7 日
@Roy Nordstrom, it seems that this question is related to your recent simulink question. There is not enough information provided here for others to help. Please provide a context and necessary background info. Thanks.

サインインしてコメントする。

採用された回答

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2023 年 2 月 7 日
編集済み: Emmanouil Tzorakoleftherakis 2023 年 2 月 7 日
I am assuming the question is about this example.
Inside the pendulum subsystem, we are modeling the equation (I + ml^2) theta_ddot = tau - c theta_dot + mgl sin(theta), where I (capital i) is moment of inertia and c is damping coefficient. These parameters are defined inside the workspace of the Simulink model, so if you go to the Modeling tab at the toolstrip -> Model Explorer -> Model Workspace you should be able to see the attached.
As you can see, both I and c are set to 0 for this example.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by