Static Optmization Constrain Violation = -1
- Gregory Philips
- Posts: 33
- Joined: Thu Aug 07, 2008 12:49 am
Static Optmization Constrain Violation = -1
Hi Ayman.
I am running the modified model that you had helped me create previously, in version 2.4. It works and generates an ID output. However when I run Static Optimization on it, at everystep I get the message constraint violation = -1 #ND
What does the error mean? I understand that large constraint violations means that very large moments are being created that exceed the contraints of the model. Is it something similar in my case?
I am running the modified model that you had helped me create previously, in version 2.4. It works and generates an ID output. However when I run Static Optimization on it, at everystep I get the message constraint violation = -1 #ND
What does the error mean? I understand that large constraint violations means that very large moments are being created that exceed the contraints of the model. Is it something similar in my case?
- Gregory Philips
- Posts: 33
- Joined: Thu Aug 07, 2008 12:49 am
Re: Static Optmization Constrain Violation = -1
Also when I run it, the model does not follow the input motion and direction while the Inverse Dynamics followed it. The muscles also dont stay connected to the bones but seem to extend well beyond the body of the model.
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Static Optmization Constrain Violation = -1
Hi Gregory,
Please file a bug report and attach the model, setup files and data files so that we can troubleshoot (and ideally fix) in version 2.4 before we make it public very shortly.
Thanks much,
-Ayman
Please file a bug report and attach the model, setup files and data files so that we can troubleshoot (and ideally fix) in version 2.4 before we make it public very shortly.
Thanks much,
-Ayman
- Gregory Philips
- Posts: 33
- Joined: Thu Aug 07, 2008 12:49 am
Re: Static Optmization Constrain Violation = -1
I have done so.
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Static Optmization Constrain Violation = -1
Hi Gregory,
The model has no mass properties, accordingly the accelerations that the Static Optimization is trying to match are infinite. We should provide a better diagnostic error message but in the meantime you should use a model with specified mass properties.
Hope this explains,
-Ayman
The model has no mass properties, accordingly the accelerations that the Static Optimization is trying to match are infinite. We should provide a better diagnostic error message but in the meantime you should use a model with specified mass properties.
Hope this explains,
-Ayman
- Gregory Philips
- Posts: 33
- Joined: Thu Aug 07, 2008 12:49 am
Re: Static Optmization Constrain Violation = -1
In the model I included the mass for the Humerus, Shadow Arm and Shadow hand as I wanted to concentrate the mass on those bodies.
Do I need to have a mass value for every body that is part of the motion (at the elbow and shoulder)?
Do I need to have a mass value for every body that is part of the motion (at the elbow and shoulder)?
- Gregory Philips
- Posts: 33
- Joined: Thu Aug 07, 2008 12:49 am
Re: Static Optmization Constrain Violation = -1
Alternatively since I have the velocity and acceleration at the joints recorded in my experimental data, would adding it to the .mot file solve the problem?
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Static Optmization Constrain Violation = -1
Hi,
Hope this helps,
-Ayman
Unfortunately the static optimization tool doesn't take accelerations as input. You also need to specify mass properties for any segment that can move otherwise any force will lead to infinite acceleration and fail downstream.gphilips3 wrote:Alternatively since I have the velocity and acceleration at the joints recorded in my experimental data, would adding it to the .mot file solve the problem?
Hope this helps,
-Ayman
- Joseph Ewing
- Posts: 7
- Joined: Fri Feb 24, 2012 11:47 am
Re: Static Optmization Constrain Violation = -1
I was wondering if there have been any changes to opensim that may now allow for inputting accelerations into static optimization, or if there is some other workaround for wanting to compute muscle excitations based on desired accelerations.
Joe
Joe