What is this error

1 回表示 (過去 30 日間)
Somebody
Somebody 2013 年 1 月 15 日
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 件のコメント
Jonathan Epperl
Jonathan Epperl 2013 年 1 月 15 日
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 2013 年 1 月 15 日
Any code examples you could provide?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2013 年 1 月 15 日
Your function evaluations are sometimes producing imaginary numbers. Be sure to put in appropriate bounds on your function range.
  1 件のコメント
Somebody
Somebody 2013 年 1 月 18 日
Yes, thank you. I found the place where my code produced complex numbers.

サインインしてコメントする。

その他の回答 (0 件)

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by