optimization problem with two variable maxima and minima

조회 수: 2 (최근 30일)
manish kumar
manish kumar 2019년 9월 6일
편집: Bruno Luong 2019년 9월 11일
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)
  댓글 수: 7
manish kumar
manish kumar 2019년 9월 6일
first step :
by differentiating y with respect to x(1)
then by putting it equal to zero the term x(2) is coming due to square root term
how to solve this
and if we are putting x(2)=1/x(1) then complex term is coming
can you help me out
Torsten
Torsten 2019년 9월 6일
Please show your code.

댓글을 달려면 로그인하십시오.

답변 (1개)

Catalytic
Catalytic 2019년 9월 6일
편집: Matt J 2019년 9월 9일
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)
  댓글 수: 9
Torsten
Torsten 2019년 9월 11일
fun= @(x)2*x.^2+23.08*(1./x).^2+4*(6+x).^2+24+14*(x.^2+(1./x).^2).^0.5+3*(x.^2+(1./x).^2)
x0 = 1.0;
xmin = fminsearch(fun,x0)
Bruno Luong
Bruno Luong 2019년 9월 11일
편집: Bruno Luong 2019년 9월 11일
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
>>

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by