Lecture -- Golden Section Search

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 4

  • @nanomicro-optics
    @nanomicro-optics 3 роки тому +1

    I believe I've written a simple function in MATLAB to capture this method, as it outputs what I expect for simple f(x) although I haven't fed it something crazy difficult yet. I did notice however that I don't need to calculate fU or fL, though, since I never actually use it after its definition. So this means I can save the "two days" according to your abstract example you covered in the video, correct?

    • @empossible1577
      @empossible1577  3 роки тому

      fU and fL are not recalculated every time, only one new point is calculated and the other values are adjusted and set equal to old values. That is the typical method. Hopefully I conveyed that in my video.

  • @PeterEbhooria
    @PeterEbhooria 11 місяців тому +1

    Please how do we get the tolerance value?

    • @empossible1577
      @empossible1577  11 місяців тому

      That is up to you based on the accuracy that you need for your application. If you have a desired accuracy, you can calculate the tolerance value you need from whatever equation you are using to evaluate the "error" each iteration. In general, I try to get at least one more digit of precision from my calculation than I think I need. Hope this helps!