Google Groups Home
Help | Sign in
Solving a large, sparse, nearly symmetric system
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
goodchild.tre...@gmail.com  
View profile
 More options May 14, 9:14 pm
Newsgroups: sci.math.num-analysis
From: goodchild.tre...@gmail.com
Date: Wed, 14 May 2008 18:14:58 -0700 (PDT)
Local: Wed, May 14 2008 9:14 pm
Subject: Solving a large, sparse, nearly symmetric system
Hi,

I'm solving a very large, real, sparse system that has the following
structure:

[ A B^T ]
[ B  0  ]

A is banded, nonzero along the main diagonal, and the off-diagonals
are antisymmetric.  In other words, ignoring the main diagonal, A = -
A^T.  Additionally, A is diagonally dominant.  Finally, B B^T is
symmetric positive definite.

I would like to avoid methods that potentially require very dense
factors since I'm solving fairly large systems.  Ideally I'd like to
use a method for which there's an existing, efficient, freely
available implementation, or one that's reasonably easy to implement
efficiently.  The only thing I know of that satisfies all my
constraints is biconjugate gradient or some simple iterative solver
like Jacobi or Gauss-Seidel.  As you can probably tell, I'm not an
expert in this field, so all suggestions are greatly appreciated!
Thanks,

Trevor


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goodchild.tre...@gmail.com  
View profile
 More options May 14, 9:47 pm
Newsgroups: sci.math.num-analysis
From: goodchild.tre...@gmail.com
Date: Wed, 14 May 2008 18:47:26 -0700 (PDT)
Local: Wed, May 14 2008 9:47 pm
Subject: Re: Solving a large, sparse, nearly symmetric system
On May 14, 6:14 pm, goodchild.tre...@gmail.com wrote:

One other potentially useful piece of information: I'm solving a long
sequence of systems of this form wherein A changes but B is always the
same.

-Trevor


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alois Steindl  
View profile
 More options May 15, 3:07 am
Newsgroups: sci.math.num-analysis
From: Alois Steindl <Alois.Stei...@tuwien.ac.at>
Date: Thu, 15 May 2008 09:07:12 +0200
Local: Thurs, May 15 2008 3:07 am
Subject: Re: Solving a large, sparse, nearly symmetric system
Hello,
you stated a quite similar question a short time ago.
Usually my intention to help decreases significantly, if someone
simply ignores the hints, which I gave to the first question and just
restates the same question again.
What is wrong about using BEMW?
Alois

--
Alois Steindl,                           Tel.: +43 (1) 58801 / 32558      
Inst. for Mechanics and Mechatronics     Fax.: +43 (1) 58801 / 32598
Vienna University of Technology,         A-1040 Wiedner Hauptstr. 8-10  


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goodchild.tre...@gmail.com  
View profile
 More options May 15, 11:01 am
Newsgroups: sci.math.num-analysis
From: goodchild.tre...@gmail.com
Date: Thu, 15 May 2008 08:01:46 -0700 (PDT)
Local: Thurs, May 15 2008 11:01 am
Subject: Re: Solving a large, sparse, nearly symmetric system
On May 15, 12:07 am, Alois Steindl <Alois.Stei...@tuwien.ac.at> wrote:

> Hello,
> you stated a quite similar question a short time ago.
> Usually my intention to help decreases significantly, if someone
> simply ignores the hints, which I gave to the first question and just
> restates the same question again.
> What is wrong about using BEMW?
> Alois

> --
> Alois Steindl,                           Tel.: +43 (1) 58801 / 32558
> Inst. for Mechanics and Mechatronics     Fax.: +43 (1) 58801 / 32598
> Vienna University of Technology,         A-1040 Wiedner Hauptstr. 8-10

Hi Alois,

Sorry if I seem to have ignored your suggestions -- actually, the
question I asked earlier was about an entirely different problem (one
involving a dense column/dense row, and without any of the special
structure of this problem).  I have also tried to apply your
suggestion from the earlier problem of writing out the equations
resulting from the block form and solving a series of two systems.
This approach led me to look at null space methods which seemed to
offer some performance advantage, but didn't really seem to be
exploiting much of the special structure I have in this latest problem
(and added quite a bit of complexity in determining the null space
matrix).  My hope was that since the problem seems to be very simple
and have a lot of special structure I would be able to use some
``tricks'' that are more specific to this system than simply running
BEMW.  Again, this is not my area of expertise, so I'm sorry if this
is a strange request, or if I'm missing an obvious connection between
this problem and my previous one.
Thanks for your help,

Trevor


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Barron  
View profile
 More options May 17, 12:17 am
Newsgroups: sci.math.num-analysis
From: cbarr...@ix.netcom.com (Carl Barron)
Date: Fri, 16 May 2008 23:17:49 -0500
Local: Sat, May 17 2008 12:17 am
Subject: Re: Solving a large, sparse, nearly symmetric system

  Assuming A is m x m and B is n x m   m much biger than n. One can
solve two sets of n equations and n unknowns both with with the same
left hand size  BB^T which is n x n and psd.

if we partition the solution vector into (x,y)^T so the following makes
sense you have:
  Ax + By = b  and Bx = d.

 let B^Tz = x  then BB^Tz = d  since BB^T is psd a choleski
factorization exists.  LL^T = BB^T   This is done once.

so now ew find z and x = B^Tz

Now we have B^Ty = b - Ax.

  BB^Ty =   B(b-Ax)
  which finds y by uising LL^T above.

done once
  find BB^T  O(n^2m)
  factor BB^T O(n^3)
done once for each changind d
   forward / back solve LL^Tz = d O(n^2)
   find x = B^Tz  O(nm)
for each changing A and/or b.
   find b - Ax   O(mp)  p = bandwidth.  
   find B(b-Ax)  O(mn)
   find y O(n^2)  forward /backward solutions.

so if n is smallish say ~ 100 this involves a dense solver of a 100 x
109 system. not too taxing as the oprerations invoving m sized variables
are just vector multiplies.

operations of O(n^3) are done once. no operations O(m^3).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goodchild.tre...@gmail.com  
View profile
 More options May 17, 12:55 pm
Newsgroups: sci.math.num-analysis
From: goodchild.tre...@gmail.com
Date: Sat, 17 May 2008 09:55:42 -0700 (PDT)
Local: Sat, May 17 2008 12:55 pm
Subject: Re: Solving a large, sparse, nearly symmetric system
On May 16, 9:17 pm, cbarr...@ix.netcom.com (Carl Barron) wrote:

Hi Carl,

Thanks for your solution.  Unfortunately, you make one assumption
about the problem that I cannot make - namely that x is in the range
of B^T (i.e., "let B^Tz = x").  I happen to know in my problem that
this assumption is not valid, and it would be quite strange if x did
not depend at all on A in my particular problem.
Thanks again for the help,

Trevor


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Barron  
View profile
 More options May 20, 10:58 pm
Newsgroups: sci.math.num-analysis
From: Carl Barron <cbarron...@adelphia.net>
Date: Tue, 20 May 2008 22:58:26 -0400
Local: Tues, May 20 2008 10:58 pm
Subject: Re: Solving a large, sparse, nearly symmetric system
In article
<416e63ba-a9a7-44e7-917c-5882e78c9...@34g2000hsh.googlegroups.com>,

   The only thing I can come up with requres n+1  m dimensional band
solvers and one n x n dense system but does not take advantage of B
being fixed.
| I   0 | |A B^T | =  |A  B^T|    CA = B  
|-C  I  | |B    0  |     | 0  D  |     D = -CB^T

|A B^T | |x1|  = | b|
|0    D  | |x2|     | d - Cb|

x = |x1|
     |x2|

but I really dont like it.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Spellucci  
View profile
 More options May 21, 7:22 am
Newsgroups: sci.math.num-analysis
From: spellu...@fb04373.mathematik.tu-darmstadt.de (Peter Spellucci)
Date: Wed, 21 May 2008 13:22:04 +0200 (CEST)
Local: Wed, May 21 2008 7:22 am
Subject: Re: Solving a large, sparse, nearly symmetric system

In article <200520082258269374%cbarron...@adelphia.net>,
 Carl Barron <cbarron...@adelphia.net> writes:

>In article
><416e63ba-a9a7-44e7-917c-5882e78c9...@34g2000hsh.googlegroups.com>,
><goodchild.tre...@gmail.com> wrote:

>> On May 16, 9:17 pm, cbarr...@ix.netcom.com (Carl Barron) wrote:

>> >   Assuming A is m x m and B is n x m   m much biger than n. One can
>> > solve two sets of n equations and n unknowns both with with the same
>> > left hand size  BB^T which is n x n and psd.

snip

>   The only thing I can come up with requres n+1  m dimensional band
>solvers and one n x n dense system but does not take advantage of B
>being fixed.
>| I   0 | |A B^T | =  |A  B^T|    CA = B  
>|-C  I  | |B    0  |     | 0  D  |     D = -CB^T

>|A B^T | |x1|  = | b|
>|0    D  | |x2|     | d - Cb|

>x = |x1|
>     |x2|

>but I really dont like it.

since you have no symmetry in A (but strict diagonal dominance if I remember
right, you even cannot apply the special software for KKT systems (there is
now a vast literature about this)) but you could do an ordinary sparse
LU decomposition (without pivoting first, evenyually after rescaling B ,
which is of no promlem in your case). then you could use this one as preconditioner
for an iterative solver if A has changed (a little)
e.g. bicg-stab. the usual way to exploit the properties you mention would be:
use a sparse QR decomposition of B, transform the system using this
(this fixes x partly) and then to resolve "for the rest".  For A you could
use a A= LU decomposition without pivoting. but then
it remains so to solve a subsystem of the form

  [O,I_{m-n}]QLUQ'[O;I_{n-m}]  tilde x_2 = tilde b_2

and although you could have Q represented in sparse Givens or Householder
factor and L and U banded and sparse the matrix on the left would usually
be dense. hence this approach would make sense only in an iterative solver
scheme but this will work only if the spectrum of A is well behaved and
which does not need to compute the matrix explicitly.
you have the relation
   Q x = tilde x
and tilde x_2 are the last n-m components of it. maybe you can invent
a special iterative scheme for this ?
hth
peter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carl Barron  
View profile
 More options May 26, 4:30 am
Newsgroups: sci.math.num-analysis
From: Carl Barron <cbarron...@adelphia.net>
Date: Mon, 26 May 2008 04:30:14 -0400
Local: Mon, May 26 2008 4:30 am
Subject: Re: Solving a large, sparse, nearly symmetric system
In article <g110ks$c1...@fb04373.mathematik.tu-darmstadt.de>, Peter

  The op might be interested in this link as it seems very related to
the problem:
www.precond07.enseeiht.fr/Talks/sameh/sameh.pdf
 google  sameh fluid dynamics will find it also.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google