alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
514 stars 53 forks source link

OpEn@MATLAB #349

Closed niezifei closed 5 months ago

niezifei commented 5 months ago

Hi, @alphaville

I am trying to solve an trajectory planning problem (NMPC) using OpEn through MATLAB interface.

The parametric optimizer can be successfully built. However, while doing simulation, the following error got reported:

thread 'main' panicked at src\main.rs:91:42: calledResult::unwrap()on anErrvalue: NotFiniteComputation note: run withRUST_BACKTRACE=1environment variable to display a backtrace error: process didn't exit successfully:target\debug\autogenerated_optimizer.exe(exit code: 101)

I tried to run the simulation step by step, and found that for the first 18 steps, it runs successfully and computes the results. But at 19th simulation step, it reports the error above.

Do you know the reason? @alphaville Thank you in advance.