Matlab moment arm error
Posted: Tue Jan 31, 2017 8:24 am
I am writing a script to iterate muscle path point locations and wrapping surface parameters in matlab. The purpose being to attempt to match the model moment arms to experimental data. The script works well some of the time, reaching my 50,000 iteration limit, but there are other times when the configuration will continue to produce a moment arm equal to zero at every joint angle. Does anyone have some insight into why the model begins to fail at this point? There does not seem to be some set of parameters that specifically produces this output, it happens seemingly at random.
Another point to note is that once the model produces this zero moment arm, no matter what I change the parameters to in the script, it will always produce zero moment arms across all joint angles. I have attempted to set the values back to a configuration that works and re-initialized, model.initsystem(), but that does not seem to work either. I wonder if there is an error with the wrapping surface which produces a java error that is not caught by matlab, and the only solution is to close and restart (which is what I would usually do in the opensim application).
Another point to note is that once the model produces this zero moment arm, no matter what I change the parameters to in the script, it will always produce zero moment arms across all joint angles. I have attempted to set the values back to a configuration that works and re-initialized, model.initsystem(), but that does not seem to work either. I wonder if there is an error with the wrapping surface which produces a java error that is not caught by matlab, and the only solution is to close and restart (which is what I would usually do in the opensim application).