I have following problem which I am using MATLAB to solve it seems to me pertty Please check Is this correct or NOT?
Question
objective function (objfun2.m)
function f = objfun2(x) f = 7.9 * 0.000000001 * 300 * pi * (x(1)^2 - x(2)^2);end
Non linear constraint (confun2.m)
function [c, ceq] = confun2(x)%Nonlinear inequality constraints
sqrt1=sqrt((1.84*100000* (pi/4)*(x(1)^4-x(2)^4))/(7.9*0.000000001*pi*(x(1)^2-x(2)^2))); sqrt2= sqrt(1+(x(3)*300^3)/(3 * 1.84 * 100000 *(pi/4)*(x(1)^4-x(2)^4))); c = -(((1.875^2)/(300^2 * 2*pi))*sqrt1*sqrt2)+230 ; % since it should have x<m form
% Nonlinear equality constraints
ceq = [];
Main Code
LB=[9.2,6,0.1];UB=[15,9.8,18];A=[];b=[];Aeq=[];beq=[];x0=[10,9,0.15];% Make a starting guess at the solution
%options = optimoptions(@fmincon,'Algorithm','sqp');
[x,fval] = fmincon(@objfun2,x0,A,b,Aeq,beq,LB,UB,@confun2);
My Solution (Not sure it is correct or NOT)
x= 9.7603 9.7603 16.8680
How would I check this?
Best Answer