global_racetrajectory_optimization icon indicating copy to clipboard operation
global_racetrajectory_optimization copied to clipboard

A Question about an Error Message: .../casadi/core/function_internal.cpp:1832: 'eval_sx' not defined for IpoptInterface

Open xwang222 opened this issue 2 years ago • 1 comments

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

xwang222 avatar Sep 04 '22 19:09 xwang222

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 :)

kertansul avatar Jan 04 '24 02:01 kertansul