Elastic Foundation Parameter Optimisation
Posted: Fri May 31, 2024 10:21 am
Hi all,
I have been trying to solve a tracking problem as a MocoStudy problem.
In doing so, I am wanting to optimise the Elastic Foundation Force parameters that I have created between 2 contact geometries. However, I have met an issue that I haven't figured out yet and I was hoping to get some advice.
The problem that I'm having is defining the AbsolutePathString of the stiffness, dissipation and friction parameters.
I'll try to be more clear. this is what is given in the doxygen to register a MocoParamer to optimise muscle optimal length:
In my case, when I try to register the stiffness parameter of the force, I do the following:
However, I get an error that says that no 'stiffness' parameter is found in the provided path. This makes sense as stiffness and the other parameters (not the transition velocity) is actually under the tag `ElasticFoundationForce::ContactParametersSet` in the .osim file. I have already tried to give path strings such as `/forceset/pb1_force/contact_parameters`, but didn't work.
Any suggestion?
Thanks in advance for you help!
Andrea
I have been trying to solve a tracking problem as a MocoStudy problem.
In doing so, I am wanting to optimise the Elastic Foundation Force parameters that I have created between 2 contact geometries. However, I have met an issue that I haven't figured out yet and I was hoping to get some advice.
The problem that I'm having is defining the AbsolutePathString of the stiffness, dissipation and friction parameters.
I'll try to be more clear. this is what is given in the doxygen to register a MocoParamer to optimise muscle optimal length:
Code: Select all
study = opensim.MocoStudy();
problem = study.updProblem();
param = opensim.MocoParameter('my_param_name', '/forceset/soleus_r', 'optimal_fiber_length', opensim.MocoBounds(0.04, 0.06))
Code: Select all
stiffness = osim.MocoParameter('pb1_stiffness', '/forceset/pb1_force', 'stiffness', osim.MocoBounds(250000, 800000))
Any suggestion?
Thanks in advance for you help!
Andrea