Page 1 of 1

Changing torque actuator excitation in every loop of Static Optimization

Posted: Wed Apr 15, 2020 11:15 pm
by sambhav.ratna
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..

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

Posted: Thu Apr 23, 2020 12:42 pm
by mjasmuss
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

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

Posted: Sun Apr 26, 2020 11:58 pm
by sambhav.ratna
Hi Mike,
I am calling OpenSim static Optimization from matlab.

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

Posted: Wed Apr 29, 2020 2:31 pm
by mjasmuss
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