Hello every one
How can we get the final value of the cost function in the CMC algorithm?
Cost function value in CMC
- Morteza Khosrotabar
- Posts: 7
- Joined: Thu Jul 25, 2019 6:25 am
- Carmichael Ong
- Posts: 401
- Joined: Fri Feb 24, 2012 11:50 am
Re: Cost function value in CMC
I don't know of a way to get that from the CMC Tool easily. One thing to note, though, is that I don't think there would be just "one" value from the algorithm. Since static optimization is being run at each time point as part of the CMC algorithm, there would be an associated cost function value at each computed time point.
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: Cost function value in CMC
If you really need this value, you could compute it in a post-processing script (see the equations here: https://simtk-confluence.stanford.edu/d ... +CMC+Works). However, if you are trying to determine whether the results are good enough, you can look at the residual and reserve actuator forces, muscle activations, etc. (see the "Evaluating your Results" section on the "Getting Started with CMC" page in the documentation: https://simtk-confluence.stanford.edu/d ... d+with+CMC).