Error using sqpLineSearch (line 22) Objective function is undefined at initial point. Fmincon cannot continue.
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
I am trying to fit a new model in my data using fmincon:
[x,fval]=fmincon(@residualF,[0.01 0.01 0.01],[],[],[],[],[0 0 0],[10 10 10],[],options,Final_T(1:25),Int_A(1:25),5,Int_G(1,1:25))
Unfortunately Matlab gives the following error:
Error using sqpLineSearch (line 22)
Objective function is undefined at initial point. Fmincon cannot continue.
I used the same parameters before for other models. This new model is in frequency domain though so I use 'ifft' before I perform the optimization. I also checked that for my previous models in the frequency domain and it's working. Anyone would have any ideas why I have this error in my new model?
Thanks in advance!
G
댓글 수: 0
채택된 답변
Matt J
2013년 6월 17일
편집: Matt J
2013년 6월 17일
If you execute
residualF([0.01 0.01 0.01])
you will see that it does not return a finite real value. Possibly, you haven't called ifft with the 'symmetric' option and it is returning a complex-valued result.
댓글 수: 2
Matt J
2013년 6월 18일
No, I'm not sure where ifftshift would be relevant here. I was talking about the 'symmetric' option of ifft()
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!