Intuition Concept

์•„๊นŒ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์ปดํ“จํ„ฐ์˜ ๋ฐ˜๋ณต๊ณ„์‚ฐ๊ณผ Y,N๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋งŒ๋“  ์•Œ๊ณ ๋ฆฌ์ฆ˜์ด์—์š”.
ํ•˜์ง€๋งŒ ๋น„๊ต์˜ ๊ฐœ๋…์ด ๋“ค์–ด๊ฐ€๋‹ค๋ณด๋‹ˆ ์•„๊นŒ๋Š” ํ•˜๋‚˜์˜ ๊ฐ’์„ ๋„ฃ์–ด์ฃผ์—ˆ์ง€๋งŒ
์ด๋ฒˆ์—๋Š” ๊ฐ’์„ ๋ฒ”์œ„ํ™”ํ•ด์„œ ๋„ฃ์–ด์ฃผ์–ด์•ผ ๊ฒ ์ฃ .

๊ทธ๋ฆฌ๊ณ  ์ด๋ฒˆ์—๋Š” ์ตœ์†Ÿ๊ฐ’์„ ๊ตฌํ•˜๋Š” ํ•จ์ˆ˜ ๋ฐ–์— ์—†์–ด์š”.
์ตœ๋Œ€๊ฐ’์€ ํ•จ์ˆ˜๋ฅผ ๋Œ€์นญ์‹œ์ผœ์„œ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

Function

[์ตœ๋Œ€์ผ๋•Œx ์ตœ๋Œ“๊ฐ’] = fminbnd(ํ•จ์ˆ˜,x1, x2)

์—ฌ๊ธฐ์„œ ํ•จ์ˆ˜๋Š”, f(x) = 0 ์˜ ํ˜•ํƒœ๋กœ ๋งŒ๋“  ๋’ค์— ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
x1 ๊ณผ x2 ๋Š” x1 < x2 ๊ด€๊ณ„์— ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

Example

0 < x < 10 ์˜ ๋ฒ”์œ„๋‚ด์—์„œ x^3 โ€“ 12*x^2 +40.25*x โ€“ 36.5์˜
์ตœ๋Œ“๊ฐ’, ์ตœ์†Ÿ๊ฐ’์„ ๊ตฌํ•ด๋ผ.

์ดˆ๊ธฐ๊ฐ’์„ ์ •ํ•ด์•ผ ํ•˜๋‹ˆ ํ•จ์ˆ˜๋ฅผ ๊ทธ๋ ค๋ด…๋‹ˆ๋‹ค.

f = @(x)x^3-12*x^2+40.25*x-36.5
fplot(f,[0 10]

1 < a < 3 ์—์„œ ์ตœ๋Œ“๊ฐ’, 5 < b < 6 ์—์„œ ์ตœ์†Ÿ๊ฐ’์ด ๋“ฑ์žฅํ•ฉ๋‹ˆ๋‹ค.

f = @(x)x^3-12*x^2+40.25*x-36.5 
fplot(f,[0 10])  
 
[a fv_min] = fminbnd(f, 3, 8)  
 
f_minus = @(x)(-1)*(x^3-12*x^2+40.25*x-36.5)
[b fv_max_minus] = fminbnd(f_minus, 1, 4)

์ตœ๋Œ“๊ฐ’์€ ํ•จ์ˆ˜๋ฅผ x์ถ• ๋Œ€์นญํ•œ ํ›„ ์ตœ์†Ÿ๊ฐ’์„ ์ฐพ์€ ํ›„ ํ•จ์ˆซ๊ฐ’์—
๋‹ค์‹œ -1์„ ๊ณฑํ•ด์ฃผ๋ฉด ์ตœ๋Œ“๊ฐ’์ด ๋ฉ๋‹ˆ๋‹ค.

a =
 
    5.6073
 
 
fv_min =
 
  -11.8043
 
  b =
 
    2.3927
 
 
fv_max_minus =
 
   -4.8043

์‹ค์ œ ์ตœ๋Œ“๊ฐ’์€ fv_max = -fv_max_minus = 4.8043 ์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.