ArticleslgStudy

computer science

Nonlinear conjugate gradient method

Nonlinear conjugate gradient method is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Nonlinear conjugate gradient method rather than just read about it. In short: In numerical optimization, the nonlinear conjugate gradient method generalizes the conjugate gradient method to nonlinear optimization. For a quadratic function f ( x ) {\displaystyle \displaystyle f(x)} f ( x ) = ‖ A x − b ‖ 2 , {\displaystyle \displaystyle f(x)=\|Ax-b\|^{2},} the minimum of f {\displaystyle f} is obtained when the gradient is 0: ∇ x f = 2 A T ( A x − b ) = 0 {\displaystyle \nabla _{x}f=2A^{T}(Ax-b…

Key takeaways

  • Nonlinear conjugate gradient method belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Nonlinear conjugate gradient method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Nonlinear conjugate gradient method from memory before moving on to harder problems.

Reference excerpt

In numerical optimization, the nonlinear conjugate gradient method generalizes the conjugate gradient method to nonlinear optimization. For a quadratic function f ( x ) {\displaystyle \displaystyle f(x)}

f ( x ) = ‖ A x − b ‖ 2 , {\displaystyle \displaystyle f(x)=\|Ax-b\|^{2},}

the minimum of f {\displaystyle f} is obtained when the gradient is 0:

∇ x f = 2 A T ( A x − b ) = 0 {\displaystyle \nabla _{x}f=2A^{T}(Ax-b)=0} . Whereas linear conjugate gradient seeks a solution to the linear equation

A T A x = A T b {\displaystyle \displaystyle A^{T}Ax=A^{T}b} , the nonlinear conjugate gradient method is generally used to find the local minimum of a nonlinear function using its gradient ∇ x f {\displaystyle \nabla _{x}f} alone. It works when the function is approximately quadratic near the minimum, which is the case when the function is twice differentiable at the minimum and the second derivative is non-singular there. Given a function f ( x ) {\displaystyle \displaystyle f(x)} of N {\displaystyle N} variables to minimize, its gradient ∇ x f {\displaystyle \nabla _{x}f} indicates the direction of maximum increase. One simply starts in the opposite (steepest descent) direction:

Δ x 0 = − ∇ x f ( x 0 ) {\displaystyle \Delta x_{0}=-\nabla _{x}f(x_{0})}

with an adjustable step length α {\displaystyle \displaystyle \alpha } and performs a line search in this direction until it reaches the minimum of f {\displaystyle \displaystyle f} :

α 0 := arg ⁡ min α f ( x 0 + α Δ x 0 ) {\displaystyle \displaystyle \alpha _{0}:=\arg \min _{\alpha }f(x_{0}+\alpha \Delta x_{0})} ,

x 1 = x 0 + α 0 Δ x 0 {\displaystyle \displaystyle x_{1}=x_{0}+\alpha _{0}\Delta x_{0}}

After this first iteration in the steepest direction Δ x 0 {\displaystyle \displaystyle \Delta x_{0}} , the following steps constitute one iteration of moving along a subsequent conjugate direction s n {\displaystyle \displaystyle s_{n}} , where s 0 = Δ x 0 {\displaystyle \displaystyle s_{0}=\Delta x_{0}} :

Calculate the steepest direction: Δ x n = − ∇ x f ( x n ) {\displaystyle \Delta x_{n}=-\nabla _{x}f(x_{n})} , Compute β n {\displaystyle \displaystyle \beta _{n}} according to one of the formulas below, Update the conjugate direction: s n = Δ x n + β n s n − 1 {\displaystyle \displaystyle s_{n}=\Delta x_{n}+\beta _{n}s_{n-1}}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Nonlinear conjugate gradient method

Start with the simplest possible case. Write down what Nonlinear conjugate gradient method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Nonlinear conjugate gradient method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Nonlinear conjugate gradient method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Nonlinear conjugate gradient method

In research
Nonlinear conjugate gradient method appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Nonlinear conjugate gradient method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Nonlinear conjugate gradient method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Gradient methods, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Nonlinear conjugate gradient method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Nonlinear conjugate gradient method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Nonlinear conjugate gradient method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Nonlinear conjugate gradient method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Nonlinear conjugate gradient method in simple terms?

In numerical optimization, the nonlinear conjugate gradient method generalizes the conjugate gradient method to nonlinear optimization. For a quadratic function f ( x ) {\displaystyle \displaystyle f(x)} f ( x ) = ‖ A x − b ‖ 2 , {\displaystyle \displaystyle f(x)=\|Ax-b\|^{2},} the minimum of f {\d…

Why does Nonlinear conjugate gradient method matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Nonlinear conjugate gradient method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Nonlinear conjugate gradient method.

Tags

  • Gradient methods
  • Optimization algorithms and methods

Keep exploring