comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Positive solution for linear equations
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Positive solution for linear equations [message #66039] Mon, 13 April 2009 21:18
erano is currently offline  erano
Messages: 22
Registered: November 2008
Junior Member
On Apr 13, 4:51 pm, David Gell <david.g...@swri.org> wrote:
> On Apr 12, 6:53 am, erano <eran.o...@gmail.com> wrote:
>
>> I am trying to find the solution for a series linear equations: Ax =B,
>> where A is a n by m matrix and B is a vector .
>> I use the IDL function SVDC but I wish the solution x to be positive
>> vector.
>> How can I do so?
>> Thanks,
>> Eran
>
> Eran,
>
> I assume that you wish each component of vector x is to be positive,
> so what you have is a linear programming problem. Try using the
> simplex method. For information on the simplex method, see Press,
> et.al. "Numerical Recipes".
>
> Dave

Dear Dave,
It seems this is the solution for my problem.
Thanks a lot,
Eran
Re: Positive solution for linear equations [message #66049 is a reply to message #66039] Mon, 13 April 2009 06:51 Go to previous message
David Gell is currently offline  David Gell
Messages: 29
Registered: January 2009
Junior Member
On Apr 12, 6:53 am, erano <eran.o...@gmail.com> wrote:
> I am trying to find the solution for a series linear equations: Ax =B,
> where A is a n by m matrix and B is a vector .
> I use the IDL function SVDC but I wish the solution x to be positive
> vector.
> How can I do so?
> Thanks,
> Eran

Eran,

I assume that you wish each component of vector x is to be positive,
so what you have is a linear programming problem. Try using the
simplex method. For information on the simplex method, see Press,
et.al. "Numerical Recipes".

Dave
Re: Positive solution for linear equations [message #66056 is a reply to message #66049] Sun, 12 April 2009 09:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> What's a positive vector?

One that doesn't continuously nag about IDL's foibles. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Positive solution for linear equations [message #66058 is a reply to message #66056] Sun, 12 April 2009 09:24 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Apr 12, 6:53 am, erano <eran.o...@gmail.com> wrote:
> I am trying to find the solution for a series linear equations: Ax =B,
> where A is a n by m matrix and B is a vector .
> I use the IDL function SVDC but I wish the solution x to be positive
> vector.
> How can I do so?
> Thanks,
> Eran

What's a positive vector?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: A question about cross-spectral analysis
Next Topic: floating menu bar

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:17:31 PDT 2025

Total time taken to generate the page: 1.03883 seconds