Failure in initial user-supplied objective function evaluation. FMINCON cannot continue
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to use FMINCON to minimize an objective function with 10 unknowns. The code works fine on my own laptop (mac) and workstation (windows 7) (MATLAB 2013 both) but when I try to run the same code on the server with Linux with Matlab R2012a, the code fails. The error I see is "Failure in initial user-supplied objective function evaluation. FMINCON cannot continue.
Do you know what can be the causes of such behaviour. It is a bit weird that the same code works on 2 machines but not on the 3rd one.
Thanks a lot in advance
0 Kommentare
Antworten (1)
Sean de Wolski
am 16 Okt. 2013
Run the following at the command line:
dbstop if error
And then run fmincon on the offending machine. This will stop on the offending line and you can inspect the values to see what is going on.
My guess is that the offending machine is either missing a required function or has a necessary function shadowed by another function that is not what you expect.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Parallel Computing 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!