deng-haoyang / ParNMPC

A Parallel Optimization Toolkit for Nonlinear Model Predictive Control (NMPC)
https://deng-haoyang.github.io/ParNMPC/
BSD 2-Clause "Simplified" License
284 stars 80 forks source link

Unix-style vs Windows-style paths #4

Open roversch opened 6 years ago

roversch commented 6 years ago

When running the Quadrotor example, I get following error:

??? OCP_F_Fu_Fx.c specified in custom source files string does not
exist in any of the following search directories:
"/Users/robin/ParNMPC/Quadrotor/.\codegen\lib\OCP_F_Fu_Fx"
"/Users/robin/ParNMPC/Quadrotor"

Code generation failed: View Error Report
Error using codegen

Error in OptimalControlProblem/codeGen (line 123)
    codegen -config cfg_OCP_KKTs...

Error in NMPC_Problem_Formulation (line 53)
    OCP.codeGen();

Error in run (line 91)
    evalin('caller', strcat(script, ';'));

Works if I replace the .\codegen\... path with codegen/lib/....

deng-haoyang commented 6 years ago

Hello, roversch,

Thanks for pointing out this problem. I've fixed this bug in a new commit. Sorry for just testing on Windows, and I will test this software on Linux later.

I am looking forward to hearing more feedback from you.

xeeman commented 4 years ago

Hi Deng, I run the example but I got this error in the final stage.

Failed to load custom code simulation library:D:\Users\sanim\Documents\MATLAB\MPC\ParNMPC\SemiActiveDamper\slprj_slcc\oSDpra6UYTzTcubJVwU2TH\oSDpra6UYTzTcubJVwU2TH_cclib.dll Component:Simulink | Category:Model error