5 views (last 30 days)

Show older comments

can any one give me the solution or help me out in solving this equation mathamatically

Y=2x(1)^2 + 23.08x(2)^2 +4(6+x(1))^2 +24+14(x(1)^2 +x(2)^2)^0.5 +3(x(1)^2 + x(2)^2)

the other equation is 1=x(1)*x(2)

Catalytic
on 6 Sep 2019

Edited: Matt J
on 9 Sep 2019

fun=@(x) [2*x(1)^2+23.08*x(2)^2+4*(6+x(1))^2+24+14*(x(1)^2 +x(2)^2)^0.5+3*(x(1)^2+x(2)^2)-Y;...

prod(x)-1];

x=fsolve(fun,initial_guess)

Bruno Luong
on 11 Sep 2019

Careful on local minimum

>> xmin = fminsearch(fun,1), fun(xmin) % not global minimum

xmin =

0.9418

ans =

270.4623

>> xmin = fminsearch(fun,-2), fun(xmin)

xmin =

-2.2066

ans =

142.7984

>>

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!