2 %> Runs example 9.8
for the conjugate gradient algorithm (Table 9.1).
6 %> @author <a href=
"http://people.epfl.ch/michel.bierlaire">Michel Bierlaire</a>
7 %> @date Fri Mar 20 14:30:01 2015
11 Q = [1 1 1 1 ; 1 2 2 2 ; 1 2 3 3 ; 1 2 3 4] ;
12 b = [-4 ; -7 ; -9 ; -10 ] ;
13 x0 = [5 ; 5 ; 5 ; 5] ;
function conjugateGradient(in Q, in b, in x0, in printlevel)
Applies the conjugate gradient method to solve where and .