Page 1 of 1

Cost function value in CMC

Posted: Mon Apr 12, 2021 2:37 pm
by mkhosrotabar
Hello every one
How can we get the final value of the cost function in the CMC algorithm?

Re: Cost function value in CMC

Posted: Mon Apr 12, 2021 3:54 pm
by ongcf
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.

Re: Cost function value in CMC

Posted: Tue Apr 13, 2021 7:55 am
by tkuchida
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).