2 %> Runs example 9.8 with the direct method (algorithm 9.1).
6 %> @author <a href=
"http://people.epfl.ch/michel.bierlaire">Michel Bierlaire</a>
7 %> @date Sun Apr 6 11:27:07 2014
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 printf(
"Solution provided by Algorihm 9.1: \n")
16 % With Octave, this can be solved directly using the following statement
17 printf("Solution provided by Octave: \n")
function quadraticDirect(in Q, in b)
Applies the direct resolution method to solve where and .