不知火舞的被虐|伊人天伊人天天综合网|博洛尼亚天气|任你懆这里只有精品4|久久美日韩精品久久|掌中之物漫画免费阅读观看|0丨d老妇

matlab中fmincon求解問題?

瀏覽:1531 回答:3

我在用MATLAB求解螺栓優化問題,但是不知道誰很忙原因老是求解不成功。


以下是我的程序:

非線性約束.m文件)

function [c,ceq] = mynas(x)

%UNTITLED Summary of this function goes here

%   Detailed explanation goes here


ceq=[];

c=[47947545/(x(1)*x(2)^2)-106;

   400*pi/x(1)-10*x(2);

   -400*pi/x(1)+5*x(2)];

end

(求解程序)

option=optimset('Algorithm','interior-point','TolX',6e-11,'TolCon',2e-8);

f=@(x)x(1)*x(2);

x0=[60,60];

A=[-1,0;0,-1];

b=[0;0];

[x,fval]=fmincon(f,x0,A,b,[],[],[],[],@mynas,option)



以下是求解后的提示:


Local minimum possible. Constraints satisfied.


fmincon stopped because the size of the current step is less than

the selected value of the step size tolerance and constraints are 

satisfied to within the selected value of the constraint tolerance.


<stopping criteria details>



x =


   1.0e+17 *


    8.5560    0.0000



fval =


   6.2211e+11


邀請回答 我來回答

全部回答

(2)
默認 最新
詹軻倚
6e -11 設大點
2017年5月8日
評論 1 點贊
技術工
@鄭政@詹軻倚
2017年5月8日
評論 點贊

沒解決?試試專家一對一服務

換一批
    App下載
    技術鄰APP
    工程師必備
    • 項目客服
    • 培訓客服
    • 平臺客服

    TOP