Question: Reinitialization in MapleSim

Hi All,

I am trying to apply a learning algorithm to a pendulum. The algorithm has Modelica custom components and also MapleSim custom components. I need to reinitialize the simulation  (i.e new initial states for the pendulum) without stopping the simulation. I think I have to use a Modelica custom component since there is a "if" condition and there is a function called "reinit()" in Modelica, but I am not sure how this works...

 

if you have any idea and let me know I will be very pleased.

 

Best

Please Wait...