Cost function value in CMC

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Morteza Khosrotabar
Posts: 7
Joined: Thu Jul 25, 2019 6:25 am

Cost function value in CMC

Post by Morteza Khosrotabar » Mon Apr 12, 2021 2:37 pm

Hello every one
How can we get the final value of the cost function in the CMC algorithm?

Tags:

User avatar
Carmichael Ong
Posts: 378
Joined: Fri Feb 24, 2012 11:50 am

Re: Cost function value in CMC

Post by Carmichael Ong » Mon Apr 12, 2021 3:54 pm

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.

User avatar
Thomas Uchida
Posts: 1777
Joined: Wed May 16, 2012 11:40 am

Re: Cost function value in CMC

Post by Thomas Uchida » Tue Apr 13, 2021 7:55 am

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).

POST REPLY