Hi,
I have a specific question regarding static optimization using matlab. The file I'm trying to use (attached as .txt) allows me to specify external forces, however, there is no option to append my model with reserve and residual actuators. Hence, the resulting muscle forces are markedly higher than expected.
Is it possible to include such an actuators file in the matlab code (or C++ code, also attached)? Both files are part of "Wu's musculoskeletal model for evaluating shoulder muscle and joint force". They both are based on version 3.3.
Static Optimization in Matlab
- Sabrina Amrein
- Posts: 3
- Joined: Thu Nov 19, 2020 5:22 am
Static Optimization in Matlab
- Attachments
-
- StaticOptimizationMatlab.txt
- (8 KiB) Downloaded 78 times
-
- JR3_mex_parent_source.cpp
- (3.39 KiB) Downloaded 56 times
Tags:
- Carmichael Ong
- Posts: 381
- Joined: Fri Feb 24, 2012 11:50 am
Re: Static Optimization in Matlab
You can perform Static Optimization by making an AnalyzeTool object, and then adding a StaticOptimization object to the AnalyzeTool.
AnalyzeTool has a "getAnalysisSet()" method to grab the analysis set, and then the analysis set will have a "cloneAndAppend(staticoptimization)" method to add the StaticOptimization object.
The AnalyzeTool also has methods such as "setForceSetFiles()" and "setExternalLoadsFileName()" to append additional forces and actuators.
AnalyzeTool has a "getAnalysisSet()" method to grab the analysis set, and then the analysis set will have a "cloneAndAppend(staticoptimization)" method to add the StaticOptimization object.
The AnalyzeTool also has methods such as "setForceSetFiles()" and "setExternalLoadsFileName()" to append additional forces and actuators.
- Adam Yoder
- Posts: 16
- Joined: Thu Jul 19, 2012 4:24 pm
Re: Static Optimization in Matlab
The setForceSetFiles() method doesnt actually appear to be working in MATALB API 4.3
More detail and a scripting work-around to append needed actuators here:
viewtopicPhpbb.php?f=91&t=11013&p=40469&start=0&view=
More detail and a scripting work-around to append needed actuators here:
viewtopicPhpbb.php?f=91&t=11013&p=40469&start=0&view=
- Thomas Mokadim
- Posts: 4
- Joined: Thu Jul 22, 2021 4:13 am
Re: Static Optimization in Matlab
Hi Adam, I am about to code a simulation also based on those tools ( Static Opti + some external forces appended to my model, the whole thing being monitored by Matlab )
Did you manage to get through your bugs ?
Thanks
Did you manage to get through your bugs ?
Thanks