GPAV is a monotonic regression algorithm. It provides a high-accuracy approximate solution to the monotonic regression problem which admits the following equivalent formulations. Formulation 1: Given a set of N observations X={(X(i,1),...,X(i,p)), i=1..N}, a corresponding response vector Y={Y(i), i=1..N} and a vector of weights W={W(i), i=1..N}, find a vector YFit={YFit(i), i=1..N} which is as close as possible, in the least-squares sense, to the response vector Y and nondecreasing with respect to X. This means that YFit solves the problem: min norm(W'*(f-Y)).^2 subject to f(i)<=f(j) whenever X(i,:)<=X(j,:) f Formulation 2: For a set of N observations i=1..N, a binary [N x N] adjacency matrix adj is supposed to be given. adj represents a partial order 'observation j dominates observation i' so that adj(i,j)=1 if j dominates i. The observations should be enumerated so that adj(i,j)=1 implies iY(3) and Y(2)>Y(3). The GPAV algorithm produces the set Blocks={[0], [2], [1,3]} which means that the resulting vector is YFit(1)=YFit(3)=2, YFit(2)=1. This vector is nondecreasing with respect to X and consistent with adj. Version: 09-09-2008