Page 1 of 1

RRA Optimization - Samaan et al. 2016

Posted: Wed Nov 01, 2017 3:27 am
by nicos1993
Dear users,

I am currently having some difficulties running the Matlab RRA Optimization algorithm developed by Dr Michael Samaan.

https://simtk.org/projects/rra-opt-gui/

I am using a 64-bit windows 10 laptop, 64-bit 2017b Matlab, and 64-bit OpenSim 3.3.

I have added the contents of the folder to the current path in Matlab, I then populate the relevant GUI fields with the required information following the instructions provided in the user guide.
1.PNG
1.PNG (62.13 KiB) Viewed 947 times
The optimization then commences, but all I see in the command window is NaN's - which I do not think should be appearing? Also the figure is not populating.
2.PNG
2.PNG (42.21 KiB) Viewed 947 times
I have also checked the out.log file and I receive the following message:

Constructing investigation from setup file C:\OpenSim.


Exception:
Object: ERR- Could not open file C:\OpenSim. It may not exist or you don't
have permission to read it.
file= C:\OpenSim33\src\opensim32\OpenSim\Common\Object.cpp
line= 114


Has anyone else encountered these issues? If so, how did you please resolve them?

Kind regards,

Nicos Haralabidis

Re: RRA Optimization - Samaan et al. 2016

Posted: Wed Nov 01, 2017 7:55 am
by jimmy
Exception:
Object: ERR- Could not open file C:\OpenSim. It may not exist or you don't
have permission to read it.
file= C:\OpenSim33\src\opensim32\OpenSim\Common\Object.cpp
line= 114
This reads as there is a filepath specific somewhere as 'C:\OpenSim'. Since that is a path to a directory and not a file, it is causing an error.

Re: RRA Optimization - Samaan et al. 2016

Posted: Wed Nov 01, 2017 8:31 am
by kbsmale
Hi Nicos,

I had this same problem, which was solved by doing the following:

-Make RRA_OPT_GUI_R1 your cd in matlab
-Add Matlab_Code_GUI folder and subfolders to your path
-Copy over all of the following files associated with the model/trial you are trying to optimize to the RRA_OPT_GUI_R1 folder:
grf.mot file
grf.xml file
ik.mot file
setup_ReduceResiduals.xml file
rra_actuators.xml
rra_tasks.xml
rra_controlconstraints.xml
model.osim
id.sto file (I'm pretty sure this one isn't actually needed, but copied over with all the others anyways)
-Make sure that all of your setup.xml files are calling in the files with the correct path since you changed these file paths when copying the files to the RRA_OPT_GUI_R1 folder.

Hopefully this fixes your error like it did for me.

Re: RRA Optimization - Samaan et al. 2016

Posted: Wed Nov 01, 2017 12:29 pm
by nicos1993
Hi both,

Thanks for your replies! I had a feeling it was due to the file locations.

I will report back after I have tried your suggestion Kenneth.

Kind regards,

Nicos Haralabidis

Re: RRA Optimization - Samaan et al. 2016

Posted: Wed Nov 01, 2017 1:24 pm
by nicos1993
Your suggestion worked nicely Kenneth!

The optimization is running smoothly now.

Thanks for your input.

Nicos