MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Solving Matrix equation with contraints 

Subject: Solving Matrix equation with contraints From: monalisa sen Date: 7 May, 2010 20:25:20 Message: 1 of 25 
Hi: 
Subject: Solving Matrix equation with contraints From: John D'Errico Date: 7 May, 2010 21:20:08 Message: 2 of 25 
"monalisa sen" <msen1981@gmail.com> wrote in message <hs1svg$84u$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 8 May, 2010 07:46:04 Message: 3 of 25 
"monalisa sen" <msen1981@gmail.com> wrote in message <hs1svg$84u$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: John D'Errico Date: 8 May, 2010 08:48:08 Message: 4 of 25 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hs34rs$5ue$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 8 May, 2010 12:05:08 Message: 5 of 25 
Actually since all the equation are equalities, no simple linear inversion (no need fancy toolbox) should do: 
Subject: Solving Matrix equation with contraints From: monalisa sen Date: 8 May, 2010 15:33:09 Message: 6 of 25 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hs3k1k$76b$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: monalisa sen Date: 8 May, 2010 15:44:05 Message: 7 of 25 
if I have to solve for X with the same constraints as above, but now the equation is 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 8 May, 2010 21:24:06 Message: 8 of 25 
"monalisa sen" <msen1981@gmail.com> wrote in message <hs40s5$7df$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: John D'Errico Date: 9 May, 2010 10:15:06 Message: 9 of 25 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hs3k1k$76b$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 9 May, 2010 11:30:22 Message: 10 of 25 
"monalisa sen" <msen1981@gmail.com> wrote in message <hs40s5$7df$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 9 May, 2010 12:30:09 Message: 11 of 25 
"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hs61va$k2g$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: John D'Errico Date: 9 May, 2010 14:26:03 Message: 12 of 25 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hs69sh$d2p$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 9 May, 2010 15:01:07 Message: 13 of 25 
"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hs6glr$mf1$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 9 May, 2010 16:09:04 Message: 14 of 25 
Here is a more robust code using levenbergmarquardt damping: 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 9 May, 2010 21:15:21 Message: 15 of 25 
I make an important change in a way to perform the internal projection. The new code is below: 
Subject: Solving Matrix equation with contraints From: monalisa Date: 11 May, 2010 20:51:06 Message: 16 of 25 
Sorry for late reply..thanks a ton ! 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 11 May, 2010 21:01:07 Message: 17 of 25 
"monalisa " <mde1506@gmail.com> wrote in message <hscfvq$dmh$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: monalisa Date: 11 May, 2010 21:22:04 Message: 18 of 25 
I learnt from the discussions :)...I really appreciate your effort...it took me some time to understand the algorithm. For my case, n=46 and its taking some time...but I am trying it right now. 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 11 May, 2010 21:34:06 Message: 19 of 25 
"monalisa " <mde1506@gmail.com> wrote in message <hschps$ae3$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: monalisa Date: 11 May, 2010 21:43:05 Message: 20 of 25 
The solution is converging , but many x(i,j) are negative in the final X matrix. 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 11 May, 2010 21:50:07 Message: 21 of 25 
"monalisa " <mde1506@gmail.com> wrote in message <hscj19$pf5$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 11 May, 2010 21:57:04 Message: 22 of 25 
Sorry I overlooked your first post and the condition X>=0 is indeed required. Another option is just project X to the positive set after updating X 
Subject: Solving Matrix equation with contraints From: monalisa Date: 12 May, 2010 00:12:06 Message: 23 of 25 
I really appreciate your patience. When I am projecting X on the positive set,after updating in the final iteration, its giving me for some of the row sums > 1. 
Subject: Solving Matrix equation with contraints From: Bruno Luong Date: 12 May, 2010 05:24:04 Message: 24 of 25 
"monalisa " <mde1506@gmail.com> wrote in message <hscrom$pvd$1@fred.mathworks.com>... 
Subject: Solving Matrix equation with contraints From: monalisa Date: 12 May, 2010 17:15:23 Message: 25 of 25 
Thanks a ton....I am unfamiliar with Fredholm's integral equation, but I will read it up. 
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.