what does the error ''Undefined function or method 'wholenetwork' for input arguments of type 'double'" mean?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
anna thomas
am 12 Nov. 2015
Kommentiert: anna thomas
am 17 Nov. 2015
hello, i am trying to optimize nonlinear constrained problem. the nonlinear constraints are saved in wholenetwork.m format. the optimization error is shown as Undefined function or method 'wholenetwork' for input arguments of type 'double'. what should i do?
1 Kommentar
Walter Roberson
am 13 Nov. 2015
Please show your code. Also please show the result of
which -all wholenetwork
Akzeptierte Antwort
Marc Jakobi
am 13 Nov. 2015
It sounds like you may have one of the following two problems:
1. The folder containing your "wholenetwork.m" file is not added in Matlab. You can find this out by typing "which wholenetwork" in the command window. If it doesn't show you a path, you have to add the path to Matlab in "Home" -> "Set path"
2. You have a variable in your workspace called "wholenetwork". In this case, Matlab try to interpret the input arguments for your function as indexes of the variable.
2 Kommentare
Walter Roberson
am 14 Nov. 2015
#2 is not possible; the error would have been different if a variable named wholenetwork existed.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!