exempleSquattoSTand- Add external Load

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
User avatar
Nicholas Bianco
Posts: 927
Joined: Thu Oct 04, 2012 8:09 pm

Re: exempleSquattoSTand- Add external Load

Post by Nicholas Bianco » Tue Jun 30, 2020 9:25 am

Hi Mouaad,

It would be easier to debug if you sent over the full model file.

User avatar
Mouaad BOUFADNA
Posts: 22
Joined: Mon Mar 16, 2020 3:24 am

Re: exempleSquattoSTand- Add external Load

Post by Mouaad BOUFADNA » Thu Jul 02, 2020 3:49 am

Hi Chris

In attachement my .osim file modified.

I thought maybe it's because I edited the barbell in Bodyset section and I shoud create it in an additionnal section ?

Thank you for helping

Mouaad
Attachments
2D_gait_barbell.osim
(192.27 KiB) Downloaded 17 times

User avatar
Nicholas Bianco
Posts: 927
Joined: Thu Oct 04, 2012 8:09 pm

Re: exempleSquattoSTand- Add external Load

Post by Nicholas Bianco » Mon Jul 06, 2020 1:14 pm

Hi Mouaad,

When you try to load the model in the GUI, there should be a red "error" circle that appear in the bottom right of the window. The message in that box may tell you what line the error in reading the XML is happening. It's likely that you missed an opening/closing XML tag or didn't properly indent somewhere.

-Nick

User avatar
Nicholas Bianco
Posts: 927
Joined: Thu Oct 04, 2012 8:09 pm

Re: exempleSquattoSTand- Add external Load

Post by Nicholas Bianco » Mon Jul 06, 2020 1:22 pm

Hi Mouaad,

Apologies, I didn't see your previous post. I've attached an updated version of your model file. Indeed, there were errors including missing closing tags and improper indenting. You had also misnamed one of the frames in the weld joint you added. Compare the two files to understand the changes.

-Nick
Attachments
2D_gait_barbell_fixed.osim
(192.47 KiB) Downloaded 17 times

User avatar
Mouaad BOUFADNA
Posts: 22
Joined: Mon Mar 16, 2020 3:24 am

Re: exempleSquattoSTand- Add external Load

Post by Mouaad BOUFADNA » Mon Aug 24, 2020 7:16 am

Hi Nick

Apologizes for the delay I was off during some weeks.

Thank you for those corrections !

I tried to process Moco with this new model but MocoCasADiSolver didn't succeed and this very quickly (after 50 to 60 iterations).

Under the failure message "MocoCasADiSolver did NOT succeed:" I have this new one I haven't ever seen
"Infeasible_Problem_Detected"
Usually I got "Maximum_Iterations_Exceeded" as comment.

I tried in another by taking the initial 2D-gait.osim file where I increased the torso mass in Edit File menu but same issue.

I think the problem with all its parameters and defined configurations I try to resolve isn't acceptable for Moco...

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: exempleSquattoSTand- Add external Load

Post by Christopher Dembia » Mon Aug 24, 2020 10:22 am

This error might mean that your constraints can't be satisfied. For example, maybe the muscles are not strong enough.

Sometimes, however, we get this error for reasons we have not yet understood. Could you share the last few lines of output describing the iterations of IPOPT?

User avatar
Mouaad BOUFADNA
Posts: 22
Joined: Mon Mar 16, 2020 3:24 am

Re: exempleSquattoSTand- Add external Load

Post by Mouaad BOUFADNA » Tue Aug 25, 2020 4:38 am

Hi Chris

After the last iteration i got this message :

"EXIT: Converged to a point of local infeasibility. Problem may be infeasible.
t_proc [s] t_wall [s] n_eval
callback_fun 0.075 0.076 247
nlp 43.2 43.2 1
nlp_f 0.022 0.0206 299
nlp_g 4.66 4.66 299
nlp_grad_f 0.255 0.253 40
nlp_jac_g 32.9 32.9 249"


I tried to reduce the convergence and constraint tolerance to 10e-2 and then 10e-1, the mesh interval to 10 and the maximum iterations number to 2000 but it failed too

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: exempleSquattoSTand- Add external Load

Post by Christopher Dembia » Tue Aug 25, 2020 11:44 am

Sorry, I should have been clearer. I was actually looking for a line higher up. Maybe you could just paste all of the optimizer output?
I tried to reduce the convergence and constraint tolerance to 10e-2 and then 10e-1, the mesh interval to 10 and the maximum iterations number to 2000 but it failed too
These are all excellent things to try. It probably means your problem truly is infeasible. Have you tried simulating the model in the GUI?

POST REPLY