Page 1 of 1

Error-over constrained

Posted: Wed Jul 07, 2021 1:03 pm
by obidah.alawneh
Hello,

I am trying to run static optimization on the model, I created a motion file.
When I tried to run static Optimization the I keep on getting an error that says ERROr-system over constrained (please see pic attached).

How can I fix the problem and make it run Static Optimization.

Ive also attached the motion file I created.

Re: Error-over constrained

Posted: Wed Jul 07, 2021 2:31 pm
by jbanks
I believe you are not setting up your Reserve Actuators properly (or possibly neglecting it altogether). This has been discussed in other posts on the general OpenSim forum (concerning other models).
viewtopicPhpbb.php?f=91&t=5476

To generate a proper actuators file, find the following sample code in your OpenSim directory:
...\Documents\OpenSim\4.2\Code\Matlab\createActuatorsFile.m

Once that file is made, you will also want to manually increase the 'Fy' for the pelvis (probably to 1000 N) in order for you model to stay in place against gravity (assuming you do not have any GRFs available) and then call it in your SOpt setup.

If this doesn't work, in your next response please attach (as a .zip) the *.mot, the exact model you have been using, your SOpt setup file, and your reserve actuator file (and anything else your calling).

Let us know how it goes.
Jake Banks

Re: Error-over constrained

Posted: Wed Jul 07, 2021 2:34 pm
by jbanks
Oh, and another thing.... if all your frames are the same just run SOpt for 1 frame.
This is not causing your 'over-constrained' problem, but it will save you A LOT of time!
Jake Banks

Re: Error-over constrained

Posted: Wed Jul 14, 2021 10:40 am
by obidah.alawneh
Hello Jake,

I was trying to do what you told me to, but I've been getting errors (please see attached images)

When I put the modelpath as the the fullbody osim model it gives me an error about syntax, but when I tried to do it with the arm26 model it goes to line 50 and gives me an error there.

Im not sure how to fix both errors.

The instruction about creating an actuators file isn't that clear, do you have any suggestions on how to do it. As well as what to do to avoid having errors with the rest of the MATLAB code.

Thanks
Obidah Alawneh

Re: Error-over constrained

Posted: Wed Jul 14, 2021 11:03 am
by jbanks
You just run the Matlab script (don't edit it at all, so you should go back to the original). There will be a GUI pop-up that asks/allows you to manually select the model you want to create an actuator file for.
Jake Banks

Re: Error-over constrained

Posted: Wed Jul 14, 2021 11:08 am
by obidah.alawneh
I just tried doing that, I fixed the first error about the file problem, but I'm getting the line 50 error in the attached picture.

Re: Error-over constrained

Posted: Wed Jul 14, 2021 11:14 am
by jbanks
The code works (just ran it)... do you have OpenSim linked to Matlab?
https://simtk-confluence.stanford.edu/d ... ith+Matlab
Jake Banks

Re: Error-over constrained

Posted: Wed Jul 14, 2021 11:32 am
by obidah.alawneh
My MATLAB wasn't linked, but I linked it just now and ran it again, I got an error that says to make sure bin in in the path, so I did that and now I got another error saying what the attached picture shows.

Obidah Alawneh

Re: Error-over constrained

Posted: Wed Jul 14, 2021 12:14 pm
by jbanks
I'm not 100% what is going on, but I can assume that you still don't have your OpenSim Library synced with Matlab correctly. Make sure to follow all the steps and run their tests. Otherwise, this is more of a question for the OpenSim team.

I would suggest to double checking things and also making sure you not running as admin. If that doesn't fix it, go and search the general opensim forum for more help concerning this exact error.
Sorry I can't be of more assistance.
Jake Banks