fmincon函数求解过程中出现无解的情况
生活随笔
收集整理的這篇文章主要介紹了
fmincon函数求解过程中出现无解的情况
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
求最優解問題的拋出:
求這個函數的最小值 function f = myfun(x)f = (pi*(x(3)+2)*x(2)*x(1)^2)/4; 運行后返回(約束在最后面有寫) 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說是這個trust……解不了這個問題,那么該怎么改一下?help過沒發現怎么改……非線性約束 function [c,ceq] = mycon(x)k=1.6*(x(1)/x(2))^0.14; %曲度系數F=13; %最大力f=20.2416; %氣門最大升程G=8100; %切變模量總結
以上是生活随笔為你收集整理的fmincon函数求解过程中出现无解的情况的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQL 语句快速参考
- 下一篇: BloomFilter——大规模数据处理