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개)

카테고리

Help CenterFile Exchange에서 Global or Multiple Starting Point Search에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by