Optimisation - fmincon error

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

1 comentario

Matt J
Matt J el 25 de Jun. de 2019
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.

Iniciar sesión para comentar.

 Respuesta aceptada

Stephan
Stephan el 25 de Jun. de 2019
Editada: Stephan el 25 de Jun. de 2019

1 voto

Rename your script. NEVER name a script like an inbuilt function. This causes exactly the error you get.

4 comentarios

Balaji L
Balaji L el 25 de Jun. de 2019
Getting same error after renaming the script.
Stephan
Stephan el 25 de Jun. de 2019
Editada: Stephan el 25 de Jun. de 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
Balaji L
Balaji L el 25 de Jun. de 2019
It worked after i deleted fmincon.m in that path and call script by new name. Thanks
Stephan
Stephan el 25 de Jun. de 2019
please accept useful answers.

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 25 de Jun. de 2019

Comentada:

el 25 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by