gelatinouscube42
gelatinouscube42
Is this behavior (of type 1 above) supported now? I've been trying various tricks to get inheritance of fields to work, and this seems like it would have been an...
For those following, the fix for this particular use case is to use the CodeGenerator class explicitly in stead of the .generate method of a function. ``` _gen = cas.CodeGenerator("fun_source.c")...
It seems the opts you provided in the code block have at least compiled the solver for me, will have to wait till the evening till I get around to...
Now getting around to testing more thoroughly...it seems there is a problem constructing the Ipopt problem in the compiled code: ``` symbol lookup error: ./tmp_casadi_compiler_shelliUE4wi.so: undefined symbol: CreateIpoptProblem ```
I also needed to add the nlpsol linked library: ``` {"compiler_flags": f"-I{Path(cas.__file__).parent / 'include/'}", "linker_flags": f"-L{Path(cas.__file__).parent} -lcasadi_nlpsol_ipopt -lipopt"} ``` Thanks for giving me guidance!