Changing torque actuator excitation in every loop of Static Optimization

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ratna Sambhav
Posts: 42
Joined: Sat Jan 12, 2019 10:16 am

Changing torque actuator excitation in every loop of Static Optimization

Post by Ratna Sambhav » Wed Apr 15, 2020 11:15 pm

Hello,
I am trying static optimization for arm flexion of arm26 model in matlab.
The procedure through which static optimization goes through is that it first calculates the joint moment at the joint based on the motion file. Then, it does muscle force calculation based on that.

Is it possible that in every loop, I alter the calculated value of joint moment and let the static optimization calculate muscle force based on that altered value of joint moment while other parameters remains the same.
For example, say if calculated joint moment is 10Nm in a loop but I want muscle force calculation done only on the basis of 5Nm because rest 5Nm has been given by the external torque for that loop.
Please, help me in knowing its possibility and how to do that.
Thanks..

Tags:

User avatar
Michael Asmussen
Posts: 67
Joined: Mon Jul 11, 2016 7:46 am

Re: Changing torque actuator excitation in every loop of Static Optimization

Post by Michael Asmussen » Thu Apr 23, 2020 12:42 pm

Hi Ratna,

Are you calling on OpenSim's static optimization routine from Matlab or are you running your own static optimization routine within Matlab?

All the best,

Mike

User avatar
Ratna Sambhav
Posts: 42
Joined: Sat Jan 12, 2019 10:16 am

Re: Changing torque actuator excitation in every loop of Static Optimization

Post by Ratna Sambhav » Sun Apr 26, 2020 11:58 pm

Hi Mike,
I am calling OpenSim static Optimization from matlab.

User avatar
Michael Asmussen
Posts: 67
Joined: Mon Jul 11, 2016 7:46 am

Re: Changing torque actuator excitation in every loop of Static Optimization

Post by Michael Asmussen » Wed Apr 29, 2020 2:31 pm

Hi Ratna,

I have done something like this before. Do you mind posting your current working code and I can provide some insight?

All the best,

Mike

POST REPLY