What is this error

1 vue (au cours des 30 derniers jours)
Somebody
Somebody le 15 Jan 2013
Hello everyone.
While using GlobalSearch in my global optimization routine, I incountered the following error:
Error using globalsearchnlp (line 110)
All elements of X must be real.
Im not able to open this file, "globalsearchnlp". What are these X? How can I fix it?
Many thanks!
  2 commentaires
Jonathan Epperl
Jonathan Epperl le 15 Jan 2013
Try
dbstop if error
before you execute your global search. It'll stop in the debugger then, maybe that'll enable you to find out what's wrong.
Shashank Prasanna
Shashank Prasanna le 15 Jan 2013
Any code examples you could provide?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 15 Jan 2013
Your function evaluations are sometimes producing imaginary numbers. Be sure to put in appropriate bounds on your function range.
  1 commentaire
Somebody
Somebody le 18 Jan 2013
Yes, thank you. I found the place where my code produced complex numbers.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by