fmincon函数求解过程中出现无解的情况
生活随笔
收集整理的這篇文章主要介紹了
fmincon函数求解过程中出现无解的情况
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
求最優(yōu)解問(wèn)題的拋出:
求這個(gè)函數(shù)的最小值 function f = myfun(x)f = (pi*(x(3)+2)*x(2)*x(1)^2)/4; 運(yùn)行后返回(約束在最后面有寫) Warning: Trust-region-reflective method does not currently solve this type of problem,using active-set (line search) instead. > In fmincon at 439 Solver stopped prematurely. fmincon stopped because it exceeded the function evaluation limit, options.MaxFunEvals = 300 (the default value). x =4.049914.00131.0013 FVAL =541.3289說(shuō)是這個(gè)trust……解不了這個(gè)問(wèn)題,那么該怎么改一下?help過(guò)沒(méi)發(fā)現(xiàn)怎么改……非線性約束 function [c,ceq] = mycon(x)k=1.6*(x(1)/x(2))^0.14; %曲度系數(shù)F=13; %最大力f=20.2416; %氣門最大升程G=8100; %切變模量總結(jié)
以上是生活随笔為你收集整理的fmincon函数求解过程中出现无解的情况的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: SQL 语句快速参考
- 下一篇: BloomFilter——大规模数据处理