fmincon how can I solve it?
이전 댓글 표시
Why is it not working?
function [ J ] = objfun( x )
%Objective function
P=25.0231; E=2; h=2;
J=((P*h)/E)*(1/(X(1)+sqrt(2)*x(2)));
end
function [ c,ceq ]=myconfun22( x )
%Constraint functions
S=0.0092; P=25.0231;
c=[(P*(x(2)+sqrt(2)*x(1))/(sqrt(2)*(x(1)^2)+2*x(1)*x(2))))-17.5;
(P/(x(1)+sqrt(2)*x(2)))-17.5*(1+0.1*S);
(-P*x(2))/(sqrt(2)*(x(1)^2)+2*x(1)*x(2))+1.2;
0.2-x(1);
x(1)-6*(1+0.2)*S;
0.2*(1-0.1*S)-x(2);
x(2)-6];
ceq=[];
What should I do to get the optimized value?
댓글 수: 1
Walter Roberson
2016년 2월 20일
You do not show your call to the optimizer. You also do not indicate what difficulties you are observing.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Choose a Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!