怎么用MATLAB求多元函数极值 5
展开全部
f = @(x,y)x(1)^2-(x(2)-1)^2
>> [x,fvalue,flag,output]=fminsearch(f,[0,0])
Exiting: Maximum number of function evaluations has been exceeded
- increase MaxFunEvals option.
Current function value: -359212266339440800000000000000000000000000000000000000000000000000000000000000000000.000000
x =
1.0e+041 *
0.9523 -6.0686
fvalue =
-3.5921e+083
flag =
0
output =
iterations: 200
funcCount: 401
algorithm: 'Nelder-Mead simplex direct search'
message: [1x233 char]
>> [x,fvalue,flag,output]=fminsearch(f,[0,0])
Exiting: Maximum number of function evaluations has been exceeded
- increase MaxFunEvals option.
Current function value: -359212266339440800000000000000000000000000000000000000000000000000000000000000000000.000000
x =
1.0e+041 *
0.9523 -6.0686
fvalue =
-3.5921e+083
flag =
0
output =
iterations: 200
funcCount: 401
algorithm: 'Nelder-Mead simplex direct search'
message: [1x233 char]
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询