Optimization: principles and algorithms, by Michel Bierlaire
|
Algorithm 9.2: Conjugate gradient algorithm for quadratic problems. More...
Go to the source code of this file.
Functions | |
function | conjugateGradient (in Q, in b, in x0, in printlevel) |
Applies the conjugate gradient method to solve
where | |
Algorithm 9.2: Conjugate gradient algorithm for quadratic problems.
Implementation of algorithm 9.2 of [1]
Definition in file conjugateGradient.m.
function conjugateGradient | ( | in | Q, |
in | b, | ||
in | x0, | ||
in | printlevel | ||
) |
Applies the conjugate gradient method to solve
where and
.
Q | matrix of size ![]() |
b | vector of size ![]() |
x0 | starting point |
printlevel | if different from 0, informations are printed at each iteration (Default: 0) |