Thread Subject: Large Overdetermined System

Subject: Large Overdetermined System

From: J RP

Date: 23 Jun, 2008 20:33:20

Message: 1 of 4

I have a very large overdetermined linear system of
equations that I would like to solve. It is a system of
form A*x = b, where A is M x N with M > N, and A and b are
both known. All entries are real.

When the product of M*N is sufficiently small,
MATLAB's "lscov" works well. However, when M x N becomes
something like 11000 x 9000 (which is the kind of problem I
am solving), MATLAB gives an out of memory error message
that I cannot get around by just closing other programs or
using pack, clearing workspace variables, etc.

Might there be a way to load part of my matrix into memory
at a time and solve the problem in steps?

Subject: Large Overdetermined System

From: John D'Errico

Date: 23 Jun, 2008 22:32:57

Message: 2 of 4

"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message
<g3p1ag$8u9$1@fred.mathworks.com>...
> I have a very large overdetermined linear system of
> equations that I would like to solve. It is a system of
> form A*x = b, where A is M x N with M > N, and A and b are
> both known. All entries are real.
>
> When the product of M*N is sufficiently small,
> MATLAB's "lscov" works well. However, when M x N becomes
> something like 11000 x 9000 (which is the kind of problem I
> am solving), MATLAB gives an out of memory error message
> that I cannot get around by just closing other programs or
> using pack, clearing workspace variables, etc.
>
> Might there be a way to load part of my matrix into memory
> at a time and solve the problem in steps?

Not really. Better is to use a sparse form
to do this. Often when you have that large
of a matrix, it has many zeros, i.e., it is
sparse.

So since an 11000x9000 martrix will take
nearly a gigabyte of ram to store, you will
gain if there are zeros.

Next, try using an iterative solver to solve
the problem, not lscov.

John

Subject: Large Overdetermined System

From: John D'Errico

Date: 23 Jun, 2008 22:32:58

Message: 3 of 4

"J RP" <philNOSPAMsonj@hotSPAMMENOTmail.com> wrote in message
<g3p1ag$8u9$1@fred.mathworks.com>...
> I have a very large overdetermined linear system of
> equations that I would like to solve. It is a system of
> form A*x = b, where A is M x N with M > N, and A and b are
> both known. All entries are real.
>
> When the product of M*N is sufficiently small,
> MATLAB's "lscov" works well. However, when M x N becomes
> something like 11000 x 9000 (which is the kind of problem I
> am solving), MATLAB gives an out of memory error message
> that I cannot get around by just closing other programs or
> using pack, clearing workspace variables, etc.
>
> Might there be a way to load part of my matrix into memory
> at a time and solve the problem in steps?

Not really. Better is to use a sparse form
to do this. Often when you have that large
of a matrix, it has many zeros, i.e., it is
sparse.

So since an 11000x9000 martrix will take
nearly a gigabyte of ram to store, you will
gain if there are zeros.

Next, try using an iterative solver to solve
the problem, not lscov.

John

Subject: Large Overdetermined System

From: Marcus M. Edvall

Date: 23 Jun, 2008 22:50:48

Message: 4 of 4

You might want to give TLSQR a shot: http://tomopt.com/scripts/register.php

If you use the save command before the solver call you can send me the
input data. Then you need not waste any time.

Best wishes, Marcus
Tomlab Optimization Inc.
http://tomopt.com/
http://tomdyn.com/



Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com