TUMFTM / global_racetrajectory_optimization

This repository contains multiple approaches for generating global racetrajectories.
GNU Lesser General Public License v3.0
473 stars 193 forks source link

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

Open xwang222 opened 2 years ago

xwang222 commented 2 years ago

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

kertansul commented 10 months 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 :)