Skip to main content

Golden Ratio

The function [Graphics:Images/GoldenRatioSearchMod_gr_4.gif] is unimodal on [Graphics:Images/GoldenRatioSearchMod_gr_5.gif], if there exists a unique number [Graphics:Images/GoldenRatioSearchMod_gr_6.gif] such that

[Graphics:Images/GoldenRatioSearchMod_gr_7.gif] is decreasing on [Graphics:Images/GoldenRatioSearchMod_gr_8.gif],
and
[Graphics:Images/GoldenRatioSearchMod_gr_9.gif] is increasing on [Graphics:Images/GoldenRatioSearchMod_gr_10.gif].

Golden Ratio:

If [Graphics:Images/GoldenRatioSearchMod_gr_11.gif] is known to be unimodal on [Graphics:Images/GoldenRatioSearchMod_gr_12.gif], then it is possible to replace the interval with a subinterval on which [Graphics:Images/GoldenRatioSearchMod_gr_13.gif] takes on its minimum value. One approach is to select two interior points [Graphics:Images/GoldenRatioSearchMod_gr_14.gif]. This results in [Graphics:Images/GoldenRatioSearchMod_gr_15.gif]. The condition that [Graphics:Images/GoldenRatioSearchMod_gr_16.gif] is unimodal guarantees that the function values [Graphics:Images/GoldenRatioSearchMod_gr_17.gif] and [Graphics:Images/GoldenRatioSearchMod_gr_18.gif] are less than [Graphics:Images/GoldenRatioSearchMod_gr_19.gif].
If [Graphics:Images/GoldenRatioSearchMod_gr_20.gif], then the minimum must occur in the subinterval [Graphics:Images/GoldenRatioSearchMod_gr_21.gif], and we replace b with d and continue the search in the new subinterval [Graphics:Images/GoldenRatioSearchMod_gr_22.gif]. If [Graphics:Images/GoldenRatioSearchMod_gr_23.gif], then the minimum must occur in the subinterval [Graphics:Images/GoldenRatioSearchMod_gr_24.gif], and we replace a with c and continue the search in the new subinterval [Graphics:Images/GoldenRatioSearchMod_gr_25.gif]. These choices are shown in Figure 1 below.


[Graphics:Images/GoldenRatioSearchMod_gr_26.gif]

If [Graphics:Images/GoldenRatioSearchMod_gr_28.gif], then squeeze from the right and use the

new interval [Graphics:Images/GoldenRatioSearchMod_gr_30.gif] and the four points [Graphics:Images/GoldenRatioSearchMod_gr_31.gif].

[Graphics:Images/GoldenRatioSearchMod_gr_27.gif]

If [Graphics:Images/GoldenRatioSearchMod_gr_29.gif], then squeeze from the left and use the

new interval [Graphics:Images/GoldenRatioSearchMod_gr_32.gif] and the four points [Graphics:Images/GoldenRatioSearchMod_gr_33.gif].

Figure 1. The decision process for the golden ratio search.

The interior points c and d of the original interval [Graphics:Images/GoldenRatioSearchMod_gr_34.gif], must be constructed so that the resulting intervals [Graphics:Images/GoldenRatioSearchMod_gr_35.gif], and [Graphics:Images/GoldenRatioSearchMod_gr_36.gif] are symmetrical in [Graphics:Images/GoldenRatioSearchMod_gr_37.gif]. This requires that [Graphics:Images/GoldenRatioSearchMod_gr_38.gif], and produces the two equations


(1)
[Graphics:Images/GoldenRatioSearchMod_gr_39.gif],
and
(2)
[Graphics:Images/GoldenRatioSearchMod_gr_40.gif],

where [Graphics:Images/GoldenRatioSearchMod_gr_41.gif] (to preserve the ordering [Graphics:Images/GoldenRatioSearchMod_gr_42.gif]).

We want the value of r to remain constant on each subinterval. If r is chosen judicially then only one new point e (shown in green in Figure 1) needs to be constructed for the next iteration. Additionally, one of the old interior points (either c or d) will be used as an interior point of the next subinterval, while the other interior point (d or c) will become an endpoint of the next subinterval in the iteration process. Thus, for each iteration only one new point e will have to be constructed and only one new function evaluation [Graphics:Images/GoldenRatioSearchMod_gr_43.gif], will have to be made. As a consequence, this means that the value r must be chosen carefully to split the interval of [Graphics:Images/GoldenRatioSearchMod_gr_44.gif] into subintervals which have the following ratios:


(3)
[Graphics:Images/GoldenRatioSearchMod_gr_45.gif] and [Graphics:Images/GoldenRatioSearchMod_gr_46.gif],
and
(4)
[Graphics:Images/GoldenRatioSearchMod_gr_47.gif] and [Graphics:Images/GoldenRatioSearchMod_gr_48.gif].

If [Graphics:Images/GoldenRatioSearchMod_gr_49.gif] and only one new function evaluation is to be made in the interval [Graphics:Images/GoldenRatioSearchMod_gr_50.gif], then we must have

[Graphics:Images/GoldenRatioSearchMod_gr_51.gif].

Use the facts in (3) and (4) to rewrite this equation and then simplify.

[Graphics:Images/GoldenRatioSearchMod_gr_52.gif],

[Graphics:Images/GoldenRatioSearchMod_gr_53.gif],

[Graphics:Images/GoldenRatioSearchMod_gr_54.gif],

[Graphics:Images/GoldenRatioSearchMod_gr_55.gif].

Now the quadratic equation can be applied and we get

[Graphics:Images/GoldenRatioSearchMod_gr_56.gif].

The value we seek is [Graphics:Images/GoldenRatioSearchMod_gr_57.gif] and it is often referred to as the "golden ratio." Similarly, if [Graphics:Images/GoldenRatioSearchMod_gr_58.gif], then it can be shown that [Graphics:Images/GoldenRatioSearchMod_gr_59.gif].

Comments

Popular Posts

Runge-Kutta-Fehlberg Method

One way to guarantee accuracy in the solution of an I.V.P. is to solve the problem twice using step sizes h and and compare answers at the mesh points corresponding to the larger step size. But this requires a significant amount of computation for the smaller step size and must be repeated if it is determined that the agreement is not good enough. The Runge-Kutta-Fehlberg method (denoted RKF45) is one way to try to resolve this problem. It has a procedure to determine if the proper step size h is being used. At each step, two different approximations for the solution are made and compared. If the two answers are in close agreement, the approximation is accepted. If the two answers do not agree to a specified accuracy, the step size is reduced. If the answers agree to more significant digits than required, the step size is increased. Each Runge-Kutta-Fehlberg step requires the use of the following six values: Then an approximation to the solution of the I.V.P....

Van Der Pol System

The van der Pol equation is an ordinary differential equation that can be derived from the Rayleigh differential equation by differentiating and setting . It is an equation describing self-sustaining oscillations in which energy is fed into small oscillations and removed from large oscillations. This equation arises in the study of circuits containing vacuum tubes and is given by If , the equation reduces to the equation of simple harmonic motion The van der Pol equation is , where is a constant. When the equation reduces to , and has the familiar solution . Usually the term in equation (1) should be regarded as friction or resistance, and this is the case when the coefficient is positive. However, if the coefficient is negative then we have the case of "negative resistance." In the age of "vacuum tube" radios, the " tetrode vacuum tube " (cathode, grid, plate), was used for a power amplifie...

Powell's Method

The essence of Powell's method is to add two steps to the process described in the preceding paragraph. The vector represents, in some sense, the average direction moved over the n intermediate steps in an iteration. Thus the point is determined to be the point at which the minimum of the function f occurs along the vector . As before, f is a function of one variable along this vector and the minimization could be accomplished with an application of the golden ratio or Fibonacci searches. Finally, since the vector was such a good direction, it replaces one of the direction vectors for the next iteration. The iteration is then repeated using the new set of direction vectors to generate a sequence of points . In one step of the iteration instead of a zig-zag path the iteration follows a "dog-leg" path. The process is outlined below. Let be an initial guess at the location of the minimum of the function . Let for be the ...

Newton-Raphson Method

This method is generally used to improve the result obtained by one of the previous methods. Let x o be an approximate root of f(x) = 0 and let x 1 = x o + h be the correct root so that f(x 1 ) = 0. Expanding f(x o + h) by Taylor ’s series, we obtain f(x o ) + hf’(x o ) + h 2 f’’(x o )/2! +-----= 0 Neglecting the second and higher order derivatives, we have f(x o ) + hf’(x o ) = 0 Which gives h = - f(x o )/f’(x o ) A better approximation than x o is therefore given be x 1 , where x 1 = x o – f(x o )/f’(x o ) Successive approximations are given by x 2 , x 3 ,----,x n+1 , where x n+1 = x n – f(x n )/f’(x n ) Which is the Newton-Raphson formula. Example: - Find a real root of the equation x 3 -5x + 3 = 0. Sol n : - Let, f(x) = x 3 -5x + 3 = 0 f’(x) = 3x 2 - 5 Choosing x o = 1 Step-1: f(x o ) = -1 f(x o ) = -2 So, x 1 =1 – ½ = 0.5 Step-2: f(x 1 ) = 0.625 f’(x 1 ) = -4.25 x 2 = 0.5 + 0.625/4.25 = 0.647 S...