Optimisation - fmincon error

While using fmincon and ga am getting this error. how to resolve it?

1 Comment

Please use text instead of screenshots to communicate code, where possible. It uses far less memory and makes it easier for people to copy/paste and experiment with your code.

Sign in to comment.

 Accepted Answer

Stephan
Stephan on 25 Jun 2019
Edited: Stephan on 25 Jun 2019
Rename your script. NEVER name a script like an inbuilt function. This causes exactly the error you get.

4 Comments

Getting same error after renaming the script.
Stephan
Stephan on 25 Jun 2019
Edited: Stephan on 25 Jun 2019
how did you call it now? is there still an old copy of it with the wrong name? What is the result of
which fmincon
It worked after i deleted fmincon.m in that path and call script by new name. Thanks
please accept useful answers.

Sign in to comment.

More Answers (0)

Asked:

on 25 Jun 2019

Commented:

on 25 Jun 2019

Community Treasure Hunt

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

Start Hunting!