opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 308 forks source link

static optimization constraint violation docs #3760

Open mrrezaie opened 2 months ago

mrrezaie commented 2 months ago

Hi, if I'm not mistaken, in OpenSim 4.x, the Static Optimization tool always reports constraint violation which is not consistent with this note in the documentation page:

If a constraint violation is reported, this could be a sign that the optimizer couldn't solve for muscle forces while enforcing the inverse dynamics solution.

It requires an update. Thank you.

nickbianco commented 2 months ago

Hi @mrrezaie, could you explain why you think this note is not consistent with the constraint violation reported by Static Optimization?

mrrezaie commented 2 months ago

Hi @nickbianco, I think this note is confusing, because the tool may report a negligible constraint violation value, e.g., 1e-14 for the entire time frames, which is not a sign of a failure. The calculated muscle force is still fine to report. Please correct me. Thank you.