how to force lsqnonlin in matlab to give only real output?
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone
I have an optimization problem and I want to solve it with lsqnonlin
[x,resnorm] =lsqnonlin(fun,x0)
fun is a complex function and so the resnorm. but x0 is real and x supposed to be real too but always become complex. How can I force lsqnonlin to give only real value for x?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!