Failure in initial user-supplied objective function evaluation. FMINCON cannot continue
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Sean de Wolski
el 16 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!