Only use optimization part of acados


I am currently working on complex robot dynamic systems with high dof, which casadi cannot properly handle the modelling of. I need to use external dynamic libraries for the modelling part, but the optimization capability of acados is quite important as well. Can I be like, extract the optimization part efficiently and incorporate it in my own code?