VOL. 16 NO. 2 (1993) 209-224
A CENTER OF A POLYTOPE:
AN EXPOSITORY REVIEW AND
A
PARALLEL
IMPLEMENTATION
S.K.SEN,HONGWEI DU,andD.W. FAUSETTDepartment
ofAppliedMathematics FloridaInstituteofTechnologyMelbourne,
FL
32901(Received
March1992)
ABSTRACT. Thesolution spaceofthe
rectangular
linearsystemAz
b, subjectto x>
0,is called a polytope.
An
attempt is made to provide a deeper geometric insight, with numericalexamples,intothe condensed paper byLord,
et al.[1],
thatpresentsanalgorithm to compute a center of a polytope. The algorithm is readily adopted for either sequential orparallel computer implementation. The
computed
center provides an initial feasible solution(interior
point)ofalinear programmingproblem.KEY WORDS AND PHRASES.
Center ofapolytope, consistencycheck, Euclidean distance,initial feasible solution, linear programming,
Moore-Penrose
inverse, nonnegative solution, parallelcomputation.1991
AMS SUBJECT CLASSIFICATION
CODES.
15A06,15A09, 65F05, 65F20,65K05.1. INTRODUCTION.
will
Thesolution space wofa linearsystem
Ax
b, whereA
is an rnxnmatrixof rank r,(i)
be emptyifandonlyif(iff)
thesystemisinconsistent, i.e., iffr rank(A,b),
(ii)
haveaunique point(solution)
iffrrank(A,b)
m n,and(iii)
haveinfinitepoints(solutions)
or,equivalently, an n- rparametersolution space iffr
rank(A,b) _<
mwhenm<
n or rrank(A,b)
<
nwhenm_>
n.A
linear system, unlike a nonlinear system, cannot have a solution space havingjust twosolutionsorany otherfinitenumberofsolutionsexceptone.In Case
(i),
thecorresponding polytope(defined
herebyAx
b,
:r>_ 0)
is nonexistent, while inCase (ii)
thepolytopewill be the(0-dimensional)
unique point iff the point x satisfies the condition x>
0.In
both thesecases the proposed centering algorithm achieves the same result as that accomplished by an
efficient linear equation solving algorithm.
In Case (iii),
the algorithm computes a center of thepolytopeiff suchacenterexists. Itisreadily seenthat thepolytopeis convex. The paperby Lord, et al.
[1]
suggests a new definition of a’center’
ofa convex polytope in Euclidean space apointisacenterofa convexpolytopein Euclidean space if it isthe center ofasphere210 S.K. SEN, H.DU & D.. FAUSETT
the center of a sphere touching
q+
1 or more boundinghyperplanes.
Degenerate
casescorrespond to fewer than q
+
1 hyperplanes ’meeting at infinity’.A polytope
does not, ingeneral, have a unique center according to the foregoing definition. Even if a uniqueness is
defined insome sense, i.e., byimposingcertain conditions mad thereby increasing complexity,
sucha uniqueness may introduce nonlinearity, andmay not achievemuch inpractice ifoneis
going to solve linear programming
(lp)
problemsusing this unique center.In
fact,the centeringalgorithm has sacrificed uniqueness in favor of preserving linearity and computational
simplicity.
A
center ofapolytope alwaysexistsifthepolytope
is afinite(bounded)
region ofthe solution space; and in most applications, uniqueness is not needed.
As
an example, any’center’,
as defined in paper[1],
is a good interior(starting)
point to solve anIp
problem.However,
a center is usually defined uniquely as the extremum of a potential function thatvanishes on the boundary
[2,3,4].
Such a definition adopts a nonlinear concept into what isessentiallyalinearsystem.
Further,
it doesnotreadilyadaptitselfto computation; inpractice,methodsbasedonthis definitionfocusonobtainingjustanapproximation tothecenter. The method of findingacenter asdescribedherenotonly encountersnosuch difficulty but alsois
simple andstraightforwardto implement.
It
providesavery easy meansof obtaininganinitial feasible solution for anIp
problem without enhancing the dimension of the problem, i.e., without introducing artificial vmiables tocheck
consistency. The intersection of thehyperplanes represented by
Az
b is ann- rdimensional space.It
isapoint ifn r 0.It
is a line if n-r 1. It is a 2-dimensional plane if n-r 2, while it is a q-dimensional hyperspaceifn- r q.
In
Section 2 we describe the centering algorithm, while in Section 3 we discuss thegeometry
ofthealgorithm consideringthemorebasiclinear inequalityproblem,andjustifyitsvalidity
through
the properties of n-dimensional Euclidean space. Section 4 presents twoexamples with comments primarily aimed as an aid for easy computer implementation. Section 5 discusses considerationsforparallel implementationof thealgorithm,while Section6
consistsofconcludingremarks.
2.
THE CENTERING ALGORITHM
Considerthelinear equationsand inequalities
Az=b,
z>_O,(1)
where
A
[aj]
isan rn nmatrixof rank r, bGR,n,
zER,.
We
writewhere
a-
[al
a2a,]
is the ithrowofA
and indicates the transpose. Observethataz--bi
represents the ith hyperplane of the linear system(1).
The steps ofthe centering algorithmarethenasfollows.q.1
Compute
zA
+b, P
(I
A
+A),
andrby Algorithm1.,q.2
Set
q--n- r; if any diagonal elements ofP--[pj]
vanish, then remove the zero rows and zero columns ofP
and the corresponding coordinates(viz.,
the correspondinghyperplanes)
fromtheproblem Az-
b.S.4 Apply Algorithm
.
9..1
Aorithrn
1(Computingx,P,
andrfrom
the9iven
eqn. Axb):
The algorithm
[5]
is anO(mn
)
direct algorithm to compute the minimum-norm leastsquares solution z
A
+ bofa system ofm linear equations,Az
b, with nvariables, wherem and n can be any positive
(finite)
integers, the vector bcan be zero or nonzero, andA
+ denotes the Moore-PenroseinverseofA.It
is conciseand matrix-inversion-free. Itprovidesa built-inconsistencycheck,and alsoproducesthe rankrof thematrixA. Further,ifnecessary, it can prune the redundant rows ofA
and convertA
into a full row-rank matrix, thus preserving the complete information ofthe system.In
addition, the algorithm produces the unique projection operator,P
I,,-A+A,
that projects the real n-dimensional spaceorthogonallyontothe null space of
A
and thatprovidesameansof computingarelativeerror-boundfor thesolutionvector
[6,7]
andanyothersolutionof the system. Thegeneralsolutionof
A
bis,
A
+ b-Pz,
wherez is anarbitraryvector. Observe that ifb 0(zero
columnvector)
then Pz.The algorithm involves no taking of square-roots and a finite number of arithmetic
operations; so, it canbereadily implementedbyerror-free
(residue)
arithmetic[7]
tocompute x,P
and r exactly. In addition, a parallel implementation is easily achieved since thealgorithm involves mainly vector operations.
In
fact, a parallel version ofthis algorithmhas been implementedon anIntel/860computer.Consider the equation
Ax
b ofrelations(1).
A
pseudocode for the algorithm is asfollows.
{,Algorithm 1.
}
begin
P:=I,;
x: =0;r:=0;for j 1 tom do
STFP
a
b
P
z ind r: r+
indend-do
end
procedure STFP a,b,
P,
indbegin
ind: 0; v:
Pa;
/:Ilvll;
b:-b-a’;
if
(/#
0)
then212 S.K. SEN, H. DU & D.W. FAUSETT
else
if b 0then
terminate
{error
message "inconsistentequations")
end-if
end-if
end
The procedure STEP computes a normal to the hyperplane represented by the equation
atz
b. After msuccessive executionsofSTEP,
the resulting vector zwill benormal to thecommon intersection of the rn hyperplanes
represented
byaz=
bj
and consequently asolution.
Theoutputsof Algorithm
I
are aparticularsolution zA
+b,knownastheminimum-norm least squares solution, of
Az= b,
the rank r(of A),
and the projection operatorP
I
A
+A. Noexplicit computation for theMoore-Penrose
inverse[8],
denoted byA
+,
isrequired for computing zand P. Thesolutionz,ingeneral,does not satisfy the nonnegativity
constraint z
>
0.Whenever y 0 and b 0occur intheprocedure
STEP,
the currentrowofA
andthe current element(row)
of bcanbedeleted,
the followingrowsofA
and bcanbepoppedup, and thenumberofrows rn can be reducedby 1 ifA
isto be converted toa full row-rankmatrix.However,
the column-ordernofP
remainsunchanged. Toobtainasolutionofhomogeneousequations
Az
0, i.e., when b 0, execute Algorithm 1 and then compute zPz,
choosinganyarbitraryzeroornonzerovectorz.
Algorithm
I
combinesthe desirable stability properties ofanorthogonaltransformationsapproachwithacomputational scheme thatis well-suited for error-free computation,sincethe ’intermediate number growth’ to any finite extent has no effect on an error-free arithmetic
[6,7].
The computationally sensitive steps in the algorithm are those involving division byv
2.
Although a test is made to guarantee that[[
v#"
0, it is possible for t to bearbitrarily small. When is
small,
itindicates thatthecurrent vector isalmost linearly dependenton its predecessors. Such ill-conditioningcan cause aseverelossof accuracy in thecomputed solution,iferror-freearithmeticisnotused.
A
thorough discussionofcomputationalissuesinsolving least-squares problemsispresentedinGoluband
Van
Loan
[9].
of the form v
<
tol,where tol is amachinedependentparameter basedonthe precision ofarithmetic operations on a particular computer. For extremely ill-conditioned systems, this
method of detectingnearrank-deficiencyisnotalwayssufficient.
Another alternative inextremecases is tousesome method other than Algorithm to
computer z, r, and
P
before preceding to Algorithm 2. The most widely used method for treating nearly rank-deficient casesis based on thesingular value decomposition, or SVD[9].
Rank-revealing methods of orthogonal decomposition is a general area of active research at
present
[10,
11,12].
The computationalcosts ofthevariousapproachesdescribed tocomputingthe inputs to
Algorithm2arepresented below.
Solving
Az
b forxA
+b, P
I-
A
+A,
andr rank(A).
MethodAlgorithm
ModifiedAlgorithm1 withrowpivoting
SVD
2.2 AlgoritAmI?,(Computinga center
from
givenS andFloating;
Point Operationsrn(4n
+
7n)
m(m
+
3)n(n
+
1)
8mn(m
+
n)
+
9nsHavingobtained
P
and the particular solution x’
xfrom Algorithm 1, the role of the original matrixA
and original vector b inAx
b is over. We no longer needA
and b tocompute a center. The inputs of Algorithm are the particular solution xp
A +b,
thenormalized projection matrix S
DP,
and the vector ofEuclidean distances/iDx
p,
whereD
diae(1]v/,,)is
adiagonal matrix, p,, being the(i,i)-th
element ofP. Observe thatP
is(symmetric) idempotent, i.e.,
P2=
P,
and p,,>
0. Algebraically, the general solution ofA: b may be given by x
’-
Pz,
where z is an arbitrary vector; observe that thisequationisessentially anidentitysinceit isvalid for whatever valuewemaysubstitutefor the vector z. It can be seen that the equation
Ax
b is equivalent to the foregoing equation(identity) which has preserved all the information of
A:=
b. Let e=[1
11]
be ann-vector and S
[s
s
s,,],t
wheres,t
isthe ithrowvectorofS. WesetD
esothatthe foregoing identity turns out to beanequation inthe unknownvariable
(vector)
z. Thus,wehave the equationSz- e. Geometrically,since s, 1, the component giof$isthe Euclidean distance of the point
xv
from the ith hyperplanesz
of the system of n214 S.K. SEN, H. DU & D.W. FAUSETT
{,Alsoritkm
2,}
begin
13:
=rain{i:
8i
=min{$t}};J:
{/};J:
1;Q:
I.;z:
O;ind: 1;while(j q+landind
1)do
STEP(aI,
1,Q, z,ind)
ifind lthenLAMDA
ifind 1 then
end-if
end-do
end
procedure
LAMDA
ind’=
O;
a’=Dz;
for GJ
doif
ai
a/
then,
(,,-
,/)/(/
,)
if
’i
>-
0thenifind 0then k. i; ind" 1; else
ifh
<
A
tthenk’=i;
end-if
end-if
end-if
end-if
end-do
ifind 1 then
/.=
k;,.
,/;
.=
z.=
x+,z
;J.= Ju{/};
end
Theprocedure
LAMDA
computes sothatz+ z
will be equidistant from the current jhyperplanes and one more. Algorithm 2provides acenter which is aninitial feasiblesolution for an lp problem. Observe that this center is not a Chebyshev point nor is it, in general,
unique.
3. GEOMETRY OF
THE CENTERING
ALGORITHM
Normalized inequalities
Sz
>
e(z
>_ 0),
where now S is an mxn matrix of rank r, zERn,
and e_
R,
specify aconvexpolytope inndimensional Euclidean space or, simply, n-space bounded by m hyperplanes; some of these hyperplanes may be redundant. Thecomponents
,
of$: Sxp-earethen the Euclideandistancesofthe given pointx’
from eachhyperplane, provided the signconvention is adopted that $iis negative if theith hyperplane separatesthe pointxpfrom thepolytope.
Let
the point x0 be in thepolytope($
> 0).
Then thefollowing procedure will finda center provided the polytope is bounded. Let arnin{,
}
be the least distance ofx0from j hyperplanes. If these j hyperplanes do not have a common intersection then Xo is a center.Otherwise, aline
through
0perpendicular to thecommon intersection isalinesuch thateverypoint of theline isequidistant from the j
hyperplanes.
Startfromx0andmovealongthis linein the direction of increasing a until a point is reached, which is equidistant from j
+
1hyperplanes, i.e., until the inscribed sphere has been expanded so as to touch one more
boundinghyperplane. Thismusthappen if thepolytope isbounded.
A
centerisobtainedbyiterating this procedure until the set of encountered hyperplanes fails to have a common
intersection,orj q
+
1 n r+
1.The validity of the centeringalgorithmisbasedonthefollowingproperties
[1].
Properly1: The vector sis normaltothehyperplane
stz
uandis directedintothe regionatz
>
u.A
tangenttto thehyperplane has the formt z -z2, where zl and z2 are pointsonthehyperplane. Therefore
stt
0; so sis normal. Ifz
is onthehyperplaneandA
>
0, thenz
z
+
As
satisfiesst
z u+
A
s>
u;sothe direction ofsisasstated.Propey 2:
If s 1 then the Euclidean distance of an arbitrary point y from thehyperplane
stz
u issty
u(
istakentobenegativeifsty
<
u).
216 S.K. SEN, H. DUE & D.W. FAUSETT
where 6 is the signeddistance. Hence
sty
stz
+
6
u+
6.property
3: IfNis amatrixwhoserows arethe junitnormalstoj given hyperplanesthen the particular solution
(vector)
zN+e
of the equation Nz e is normal to theirintersection,whereeis asdefinedbefore.
If vis tangential to all the j hyperplanes
(i.e.,
if v is a tangent to the intersection of these jhyperplanes)
thenNv
0. Therefore,vtz
vtN
+evtNt(NNt)-e
(Nv)t(NNt)-e
0, whereA-
is a generalized inverse ofA; A-
satisfies the conditionAA-A
A.
Property
4: If a point a: is equidistant from j hyperplanes Na: w then so iswherez N+eand is arbitrary.
By
Property
2,ifx is at adistanceafrom each of the jhyperplanes thenNx-to ae, and the distances of a:’ from the hyperplanes are given by the components of 6 Nz’-to. SinceNz e, 6(a
+
A)e;
so,z’isat thesame distancea+
A
fromall of the jhyperplanes.Algorithm
,
the centering algorithm, now follows from these properties.Upon
completion of the ’jth iteration
(in
Algorithm2)
we obtain a j xq matrixN
whose rows are(i
EJ)
to the encountered hyperplanes. Thesuccessive applications of the theunit normals s,procedure
STEP (in
Algorithm)
build up N row by row and produce z N+e. Thus, byProperty
3,the vector z isnormaltothe jhyperplanes
already encountered;or,equivalently,z is normal to the intersection of these j hyperplanes. While building up the matrixN,
theparticular point
(solution)
which was initially at the intersection of these hyperplanes, i.e., whichwasinitially equidistant(distance
is0)
from thesehyperplanes,continues tomovealongthe line whose every point is equidistant from the j hyperplanes.
In
fact, as soon as the construction ofone rowofNviaSTEPis over, the point z moves alongthe foregoing linebyan amount
z,
where $ is a value computed by the procedureLAMDA.
Since : is a point equidistant from these jhyperplanes,byProperty
,
the point x+
Szis also equidistant fromthese jhyperplanes forany
,.
Just
after buildingupeachrowofN, LAMDA
computes$sothat x
+
Sz will be equidistant from the j hyperplanes and one more.By Property
,
the distances of the point :from the nhyperplanesarethe componentsof$Sz-
uand those of the pointx+
Az
are$’-S(x
+
Az)
tt $+
Air, wheretrSz.
Wehave 66,
(constant)
for iEJ andai=a,=l
for iJ(since
Nz=e).
Therefore,6=6,+Aa,
(iqJ) and6:,
&, +
Aa
(7
J)-
For the point+
Az
to beequidistant from the jhyperplanesandone more, we should have6
65,
for some 7J.
Thus, we haveA
(6,-&)/(a.-a,).
Thez
+
Az
will beequidistantfromthe j encounteredhyperplanes plusone more.4.
EXAMPLES
Example 1: Consider the equation
Az=
b,z>
0, whereA
=[
1re=l, n=2.
S.1 Findz
A
+b,P,
rbyAlgorithm 1"j=l.
STEP%,
b,
P,
,
ind)
ind=O,v=Pa,=[1
1,=
Ilvll’=2,
b,=b,-ax=2.
e
[
z--[
10.5 0.5 1
,
ind 1.z
A
+ b>
0(already).
r r+ind 1.q.2 q=n-r=l.
$’.3
o
v
’-/ /v
*=
[I
[1
Apply Algorithm2:
8a
min{8,}
/’;
J 1};
O
0
j=l.
STEP(s
a, 1,Q,
z,ind)
I12
1/2
o]
11/2
LAMDA
ind 1; a
Dz
11;
A
(:2
l)/(Ol
0:2 0;A
A:2
0;/-2;
f-[//],z=[
1;J={1,2}.
2. j is now q+l; so, the center
is[
1 1].
It may be seen that this centerJ
servesas agoodinitialfeasible solutionfor therelated pproblem.
Geomdr_.
The following figure (Fig.1)
depicts the geometry ofthe foregoing polytope218 S.K. SEN, H. DU & D.. FAUSETT
x
21
hyperplane
x _-o
BN o,
2)
_,
I
"’center
founds2=[-.7,.7]
\
Fig. I
Geometry
ofthepolytope 1 1r
2The finite line
AB
is the polytope x. The lineAB
extended infinitelyon both sides is the solution spaceto.51
isthe Euclidean distance of the center 1 1 fromthehyperplanexi 0 into.
52
is that of the center from thehyperplanex2 0into. It canbe noticed thatthehyperplanexi 0intoisthe pointB,
i.e., 0 2,
and thehyperplanex
0 intois the pointA,
i.e., 2 0.
The vectors
is normal to the hyperplane xi 0 in to(i.e.,
the pointB)
whilethevectors
isnormaltothehyperplanex
0 into(’i.e.,
the pointA).
isa rowvector whose position withinvariant direction canbeimaginedto bepresent at anyother place besides the origin 0. Thus, the row vectors
fromB
is directedintothepolytopeBA
andd
fromA
intoAB.
Ezam_le
2: Consider the equationAz
b,
z_>
0, whereA=
b= ,m=2, n=4,1 1 0 1 6
j--l.
STEP(a,
b, P,
,
ind)
ind=O; v=
Pa
=[-1
1 1 0It,
Y--1111=3
b
-5;2/3
1/3
1[3
01/3
2/’3
-1[3
01/3 -1/3 2/3
00 0 0 1
:z=[
5/3 -5/3-5/3
0j----2.
STEP(,
b2,
P,
z,ind)
ind=O;,=[
0]’;U=3;b=;
ind 1;
S.2
1/3
01/3
-1/31
01/3-1/3
/
y#O.
P=
1/3 -1/3 2/3
-i/3-1/3
02/3
J
z:[11/3
1/3-5/3
2]t.
ind 1;r 2.
q=n--r--2.
S.3
1.7321 0 0 0
D
Diag(1/v/,i)
0 1.7321 0 00 0 1.2247 0
0 0 0 1.2247
S= DP=
.5774 0 .5774 .5774
0 .5774 .5774 .5774
.4082 -.4082 .8165 0 $
Dz
.4082 .4082 0 .8165
6.3512 .5774
2.0412 2.4494
S.4 Apply
Al#orithm
2.60=min{6i}=63=
-2.0412;J={3};
Q=14;
z=0; j=l;STEP(sa,
1,Q,
z,ind)=
STE,
1,Q,
z,ind);
220 S.K. SEN, H. DU & D.W. FAUSETT
#
o;
Q
Q-
,,V/
8334 .1666 .3333 0
1666 .8334 .3333 0
.3333 .3333 .3333 0
0 0 0 0
z=[.4082
-.4082.8166 0;ind=l;
LAMDA
ind=l;
=Dz=[.7071
-.7071 1 0;
,
(,-
)/(-
,)
(i
J,
,
#
)
A,
(tl
a)/(a
acq)
28.6521;As
1.5339;A
4.4906;As
rain(A,),
A, >_
0A
1.5339;A
1.5339;$ $
+
As
[7.4358
-.5072-.50732.4494;
x-- x/Az
[4.2928-
0.292& 0.4141 2;
J
{2,3}.
Sinceind 1, j 2.
S
TEP(
s, 1,Q,
z,indind O; v
Q
.2886 .2888 0 -,5774]’;
y"II
--.5;b 1
sz
1.7072;#
0;Q
Q-
,.,’/
6668 -.0001 -.3333 .3333 .0001 .6667 .3333 .3334
.3333 .3333 .3333 0
3333 .3334 0 .3333
z z-}-
bv/y
-[
1.3936 .5776 .81661.9711];
ind i;LAMDA
ind 1; a
Dz
2.4138 1.0004 1.0001 -2.4140A,
(6,-
)l(a,-
a,)
(i
J;
a,# aS)
(,,
)l(a
a,)
5.6198;A4
.8659;As
A4
.8659;.8659.
6+
6a[9.5260
.3590 .3587 .3590];
x+
Az
[5.4996
.2073 .2930 .2932{2,3,4},
j 3.{since
j q+
1}
stop.Remark:Ifanonnegative solutionof linear equations isrequiredthen acenterwhich is anonnegativesolution maybecomputed.
5.
PARALLEL IMPLEMENTATION
Step
q.1 (Algorithm1)
of thecentering algorithm, coded as ahost program andanode program, is implemented on a parallel hypercube computer as follows. The host sends the number of rowsrn and the number of columns n of the mathixA,
the number of processors(nodes)
p 2d used, and the right-hand side vector b of the equationAx
b to each node processor. Whichpart(rows)
ofP
and xwill be computed byeach nodeprocessor?
In
order to consider this question we set k[n/p]
andk
n-kp. Ifk
#
0 then each of Nodes0,1,2,...,k-i computes
k+l
rows ofP
and,
and each of Nodeskl,
k +l,...,p-1 computes k rows ofP
and.
Ifk
0 then each of Nodes 0,1,2,...,p computes krows ofP
and.
For example,ifwehave4 Nodeprocessors 0,1,2,3andP
is 1010 thenn 10, p 4, k 2, and k 2. Node 0 willcomputefirst threerows ofP
and,
Node 1next threerowsofP
and :, Nodes 2 and 3 the remainingtwo rowseach. Each processor initializes itspart ofP
and itspart of.
Observe that isinitiallyzeroandP
isinitiallyanidentitymatrix. Itthensends one row of
A
at a time to each processor starting from the first row. Each node processor, onreceipt ofarowofA,
computesitspartof the vector v, the resulting(partial) y, andbj.
Each node thencommunicates thesepartialvand partial y to other nodessothat each node has complete v and complete y(the
global
sum)
in its memory; the number ofcommunications required is d, the dimension of the hypercube. If y
#
0 then each node processor computes itspart ofP
and :, and setsind 1. Theprocess is continueduntil the host program completes sending all the rows of A.On
receipt of one row ofA,
each nodeprocessor will be executing the procedure
STEP
once. Thus eachnode
will executeSTEP
m times to formits own part ofP
and x, and also the rank r ofA
and the dimension of thesolution space q n- r corresponding to the m rows of
A.
Since the communication timebetweenthe host andanode processorismuchlargerthan that betweenonenodeandanother,
it will be seen later that each processor sends its part ofsolution to Node processor 0which
appropriatelyappendsthe parts ofxandforms the requiredx.
The parallelization of
Steps
S.2 and S.3 proceeds along with that ofStep S.1;
no communication among processors is needed.Every
processor computes the dimension ofthe solution spaceq.It
thencomputestherowsofD,
$, and5’ correspondingto itsparts ofP
and222 S.K. SEN, H. DU & D.W. FAUSETT
ithcolumn of P arezero, forsome then,insteadofdeletingtheithrowand ithcolumnofP
and consequently removing the corresponding coordinates as is done in the sequential algorithm,we set ithrow and ith column of Stozeroas wellas
(i,i)th
element ofD
zero;wealso set
,
K,
a sufficiently large positive real number, and corresponding component ofz 0. The motive of retaining this unnecessary information is to avoid inter-processor
communication
(that
will arise due to indexmodification)
at these steps. In fact, this information will beskippedasand when theyareencountered.For the parallel implementation of Step SA (Algorithm
2)
of the Centering algorithmeach nodeprocessorneedscompletefin its memory;so, thenumberof communicationsthatis
requiredto accomplish this taskis d. It thenfindsa smallest componentof andrecords its index as
.
Theprocessorthatcontainstheth
rowofS,
viz.s,
sendsthisrowtoevery otherprocessor. After initializing its part ofthe matrix
Q
and vector z each processor enters intothe repeat loop containing two procedures STEP and LAMDA. Having completed the
execution of STEPas in Algorithm 1, each node, if ind 1, executes
LAMDA,
computes itspart oftr,communicates thispart toall other processorssothateach processorhas completetr
in itsmemory. Thusevery processorusing the complete tr,
,
and theindex/computes all$,,findsa smallest nonnegative
hi
ifnot all,k, <
0, and thenupdates complete anditspart ofz.Thus,
each processor executes the repeat loop the required number of times; the processor 0 then collects from all other processors theirparts ofthe solution, appends them appropriately and sends the completesolutionxto thehost.The number ofcommunications betweenthehost andanode dependson thesizeof the
coefficient matrixArelative tothememorycapacityof thenodes. Ifthecapacity of each node
is insufficient to store the entire matrix, we can let each node keep only the right-hand side vectorb and one rowat atimeof thematrixA.
In
this casethehost must send thematrixA
row by row to each node processor, as described above. The number of communicationsrequired is then m
+
3. If the storagefor each node is not a problem, the host can send theentire matrix
A
and vector b to each node in one communication. The number ofcommunications is then 3.
However,
the number of communications among nodes in ourparallel code is 6d, where d is the dimension of the hypercube used. If a typical
communication is about 500 times more expensive than a flop then the order of the matrix
6.
CONCLUDING
REMARKSIf the polytope defined by
Az
b,
:>
0 is nonexistent then the centering algorithm detects that condition. Ifit isunbounded then thealgorithm produces anonnegative solutionof
Ax=
b which may be useful for a physical problem; further, such a solution with an indication of unboundedness is also useful while solving an p problem. Preservation of linearity and simplicity by the algorithm is attractive in interior point methods forIp
problems.
While Algorithm
(for
the computation of the projectionoperatorP
(I-
A
+A),
thesolution vector x
A
+b,and the rank ofA)
canbeimplemented error-free,Algorithm (StepsS.3 and
S.4)
however is notimplementableerror-freebecause ofsquare-root operations. Thus,apartial error-free computationis possible andmay beusefulinenhancing theaccuracyof the final solution. It can be seen
[6,7]
that the error-free computation is inherently parallel andimmune to ’intermediate number growth’. Since the centering algorithm involves extensive matrix-vector operations, implementation of the algorithm on a
vector/super-computer
isrelatively straight-forward.
It
can beseen[13]
that aconvex polytope is defined, ina more general form, as asetwhichcanbe expressedastheintersectionofa finitenumberofclosed half spaces.
ACKNOWLEDGEMENTS.
S. K. Sen is on leave fromSERC,
Indian Institute of Science,Bangalore 560012, Indiaand wishes to acknowledge thesupport of a Fulbright fellowship for the preparation ofthis paper.
D.W.
Fausett was supportedby NSF Grant#ASC
8821626, New TechnologiesProgram,
DivisionofAdvancedScientific Computing.The authors thank Dr. Chuck Romine of Oak Ridge
NatiOnal
Laboratory for his assistanceindevelopingaparallelcode for the centeringalgorithmontheIntel/860computer.REFERENCES
[1]
Lord,
E.A.,
Venkaiah, V.Ch.,
andSen, S.
K.,
An
algorithm to compute a center ofapolytope, Proc. CSI-90
(1990)
8.[2]
Bayer, D.A.
and Lagarias,J.C.,
Thenonlinear geometry oflinearprogrammingI,
Affine and projective scalingtrajectories,Trans. Amer. Math. Soc.314(1989)
499-526.[3]
Renegar,
J.,
A
polynomial-time algorithm based onNewton’s
method, for linearprogramming, Mathematical Prograxnming 40
(1988)
59-93.[4]
Vaidya,P.M.,
An
algorithm for linear programming which requires0(((m+n)n+
(m
+
n)LSn)L)
arithmetic operations,Proc.
ACM
Annum
Symp.
onTheory of Computing(1987)
29-38.[5]
Lord,E.A., Sen, S.K.,
and Venkaiah, V.Ch.,A
concise algorithm to solve224 S.K. SEN, H. DU & D.W. FAUSETT
[6]
Venkaiah, V. Ch. andSen,
S.K.,
Error-free matrix symmetrizers and equivalentsymmetricmatrices, ActaApplicandeMathematichae 21
(1990)
291-313.[7]
Venkaiah,V.
Ch., Computationsin Linear Algebra:A
New Look at Residue Arithmetic, Ph.D. Thesis,Indian InstituteofScience, Bangalore 560012, India, 1987.[8]
Rao,
C.R. and Mitra,S.K.,
Generalized Inverse ofMatrices and Its Applications, Wiley, 1974.[9]
Golub, G.H. and VanLoan, C.F.,
Matrix Computations, 2nd Ed., Johns Hopkins Univ.Press,
1989.[10]
[12]
[13]
Bischof, C.H. and
Hansen, P.C.,
A
block algorithm for computing rank-revealingQR
factorizations,
Argonne
National Laboratory PreprintMCS-P251-0791,
1991.Hong, Y.P.
andPan, C.T.,
Rank-revealingQR
factorizations and the singular value decomposition,Argonne
National Laboratory PreprintMCS-P188-1090,1990.Stewart,
G.W.,
Updating a rank-revealingULV
decomposition, Universityof
MarylandTechnical
Report UMIACS-TR-91-39,
1991.Luenberger,
D.G.,
Introductionto Linear and Nonlinear Programming, 2nd Ed.