NNLS (Lawson-Hanson) method in linearized models.

20
NNLS (Lawson- Hanson) method in linearized models

Transcript of NNLS (Lawson-Hanson) method in linearized models.

Page 1: NNLS (Lawson-Hanson) method in linearized models.

NNLS (Lawson-Hanson) method in linearized

models

Page 2: NNLS (Lawson-Hanson) method in linearized models.

LSI & NNLS

• LSI = Least square with linear equality constraints

• NNLS = nonnegative least square

hGxfEx ,min

0,min xfEx

Page 3: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

Stopping condition

yes no

Manipulate indexes

Compute a subproblem

yes

no

finish

nonnegativity conditions for the subproblem

Change the solution sothat it satisfies the

nonegativity conditions

Flowchart

Page 4: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

• Sets Z and P

• Variables indexed in the set Z are held at value zero

• Variables indexed in the set P are free to take values different from zero

• Initially and P:=NULL

Zn,...,1

Page 5: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

Stopping condition

yes no

Manipulate indexes

Compute a subproblem

yes

no

finish

nonnegativity conditions for the subproblem

Change the solution sothat it satisfies the

nonegativity conditions

Flowchart

Page 6: NNLS (Lawson-Hanson) method in linearized models.

Stopping condition

• Start of the main loop

• Dual vector

• Stopping condition:

set Z is empty or

)(: ExfEw T

Zjwj

,0

Page 7: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

Stopping condition

yes no

Manipulate indexes

Compute a subproblem

yes

no

finish

nonnegativity conditions for the subproblem

Change the solution sothat it satisfies the

nonegativity conditions

Flowchart

Page 8: NNLS (Lawson-Hanson) method in linearized models.

Manipulate indexes

• Based on dual vector, one parameter indexed in Z is chosen to be estimated

• Index of this parameter is moved from set Z to set P

Page 9: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

Stopping condition

yes no

Manipulate indexes

Compute a subproblem

yes

no

finish

nonnegativity conditions for the subproblem

Change the solution sothat it satisfies the

nonegativity conditions

Flowchart

Page 10: NNLS (Lawson-Hanson) method in linearized models.

Compute subproblem

• Start of the inner loop

• Subproblem

where column j of Ep

fzEp

Zj

PjEofjcolumn

,0

,

Page 11: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

Stopping condition

yes no

Manipulate indexes

Compute a subproblem

yes

no

finish

nonnegativity conditions for the subproblem

Change the solution sothat it satisfies the

nonegativity conditions

Flowchart

Page 12: NNLS (Lawson-Hanson) method in linearized models.

Nonnegativity conditions

• If z satisfies nonnegativity conditions then we set x:=z and jump to stopping condition

• else continue

Page 13: NNLS (Lawson-Hanson) method in linearized models.

Initial conditions

Stopping condition

yes no

Manipulate indexes

Compute a subproblem

yes

no

finish

nonnegativity conditions for the subproblem

Change the solution sothat it satisfies the

nonegativity conditions

Flowchart

Page 14: NNLS (Lawson-Hanson) method in linearized models.

Manipulating the solution

• x is moved towards z so that every parameter estimate stays positive. Indexes of estimates that are zero are moved from P to Z. The new subproblem is solved.

Page 15: NNLS (Lawson-Hanson) method in linearized models.

Testing the algorithm

• Ex. Values of polynomial

are calculated at points x=1,2,3,4 with fixed p1 and p2.

• Columns of E hold the values of polynomial y(x)=x and polynomial at points x=1,2,3,4.

• Values of p1 and p2 are estimated with NNLS.

2

21)( xpxpxy

2)( xxy

Page 16: NNLS (Lawson-Hanson) method in linearized models.

25.01.0)( xxxy

nnls_test 0.1 (c) 2003 by Turku PET CentreMatrix E:1 1 2 4 3 9 4 16 Vector f:0.6 2.2 4.8 8.4 Result vector:0.1 0.5

Page 17: NNLS (Lawson-Hanson) method in linearized models.

32 13.05.01.0)( xxxxy

nnls_test 0.1 (c) 2003 by Turku PET CentreMatrix E:1 1 1 2 4 8 3 9 27 4 16 64 Vector f:0.73 3.24 8.31 16.72 Result vector:0.1 0.5 0.13

Page 18: NNLS (Lawson-Hanson) method in linearized models.

nnls_test 0.1 (c) 2003 by Turku PET CentreMatrix E:1 1 1 1 2 4 8 16 3 9 27 81 4 16 64 256 Vector f:0.73 3.24 8.31 16.72 Result vector:0.1 0.5 0.13 0

432 013.05.01.0)( xxxxxy

Page 19: NNLS (Lawson-Hanson) method in linearized models.

32 13.001.0)( xxxxy

nnls_test 0.1 (c) 2003 by Turku PET CentreMatrix E:1 1 1 2 4 8 3 9 27 4 16 64 Vector f:0.23 1.24 3.81 8.72 Result vector:0.1 7.26423e-16 0.13

Page 20: NNLS (Lawson-Hanson) method in linearized models.

• Kaisa Sederholm: Turku PET Centre Modelling report TPCMOD0020 2003-05-23