fdevinc / ungar

Simplifying optimal control with metaprogramming
Apache License 2.0
97 stars 11 forks source link

Compare Ungar with OCS2 #8

Open edward9503 opened 11 months ago

edward9503 commented 11 months ago

Dear @fdevinc ,

Thanks for sharing such impressive work!

I also used the OCS2 before. Since you are in the same university but different groups, I was wondering have you ever compared the performance and computational speed with the OCS2? Is there any compelling reason why we should use Ungar instead OCS2? Many thanks!_

fdevinc commented 11 months ago

Dear @edward9503,

Thank you for your appreciation! Comparing OCS2 and Ungar:

If you are accustomed to OCS2 and appreciate its interfaces, sticking with it is definitely reasonable! Unlike Ungar, OCS2 is more extensive, but it comes with a potentially steeper learning curve and demands more boilerplate code for implementation—exemplified by the available robotic examples.

Finally, there is always the option to use both at the same time: for example, you may use Ungar variable maps to prevent bugs when handling indices (see lines from 43 to 69 here). This is not the most comprehensive answer, but I hope it helps!