Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run singleshell_IMOC_1Opt_CNLO Demo Error #3

Open
peizhouhuang opened this issue Dec 27, 2018 · 1 comment
Open

Run singleshell_IMOC_1Opt_CNLO Demo Error #3

peizhouhuang opened this issue Dec 27, 2018 · 1 comment

Comments

@peizhouhuang
Copy link

Hello,

I tried to run singleshell_IMOC_1Opt_CNLO.m demo. But it jump out error: undefined function or variable 'NLOPT_LD_SLSQP'. And then I download the nlopt-2.4.2-dll64 and use command addpath('nlopt-2.4.2-dll64/matlab') in matlab. But it said try to run SCRIPT nlopt_optimize as function. Does anyone know how to solve it?

Thanks.

@JianCheng
Copy link
Member

I think that it is because you did not successfully install nlopt in matlab, then matlab cannot find the nlopt_optimize function.
You'd better build nlopt by yourself, then add the folder which contains nlopt_optimize.m in the matlab path.
https://nlopt.readthedocs.io/en/latest/NLopt_Installation/#matlab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants