View Single Post
  #2  
Old 04-25-2013, 11:24 PM
htlin's Avatar
htlin htlin is offline
NTU
 
Join Date: Aug 2009
Location: Taipei, Taiwan
Posts: 601
Default Re: Linear regression question

Quote:
Originally Posted by Xing Wu View Post
Hello, I have a question about linear regression,
Ax=b, how to find constrained solution, like some elements of x have to be positive.
Thank you.
One possibility is to minimize |Ax - b| subject to the constraints of non-negative x, which is a linear programming problem. If you want to minimize the squared error subject to non-negative x, it would be a quadratic programming problem. Hope this helps.
__________________
When one teaches, two learn.
Reply With Quote