Open xwang222 opened 2 years ago
I recently came across this repo and encountered the same issue.
The problem is caused by improper numpy concatenation on mixed float
& SX
variables in this section
The solution is to insert
n_min = n_min.__float__()
n_max = n_max.__float__()
after this line and this line
which forces n_min
and n_max
to convert from SX
back to float
Hope that helps :)
Hi everyone,
I am new to this package and I am just trying to run main_globaltraj.py without changing anything. However, I received the following error message: .../casadi/core/function_internal.cpp:1832: 'eval_sx' not defined for IpoptInterface.
Could someone help me with the issue? Which file should I edit? or how to work around this issue?
Best Xu