Import package in script embedded in Simulink model

9 views (last 30 days)
Hi everyone,
I'm solving an optimization problem using an external solver package. (CasADi to solve a model predictive control problem)
My system is modeled in Simulink and the package is imported in an embedded script as,
"import casadi.*"
When compiling the model I get the error message, "Import statements are currently unsupported" (I'm running R2017b)
Is there anyway around this issue for my version of matlab?
Daniel Alejandro Poveda Pi
Hi! I'm having the same problem, has anyone arrived to a solution for this problem?
Thanks in advance,

Sign in to comment.

Answers (0)


Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!