Skip to content

Help with R solve

3 messages · Lio, Yuhlong, Jeff Newmiller, Berend Hasselman

#
I need someone to help with solution for a system of linear equations  A%*%x =b, where A is the coefficient matrix and b is right hand-side constant column.  

My question is that is there any option in the qr.solve to get a non-negative solution for x column, when more than one possible solution happens in the system.

Thanks,
Y.L.
#
This question is about linear algebra theory, or perhaps linear programming, not about R. There is no magic parameter to solve this for you... either there is a non-negative solution or there isn't.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
On September 21, 2014 7:10:19 PM PDT, "Lio, Yuhlong" <Yuhlong.Lio at usd.edu> wrote:
#
On 22-09-2014, at 04:10, Lio, Yuhlong <Yuhlong.Lio at usd.edu> wrote:

            
If you are referring to an underdetermined system of linear equations have a look here:

http://en.wikipedia.org/wiki/System_of_linear_equations

section Matrix solution.

Berend