forum.alglib.net

ALGLIB forum
It is currently Mon Dec 23, 2024 4:43 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Boundary Constrained Linear Least Squares?
PostPosted: Fri Jan 25, 2013 7:03 am 
Offline

Joined: Fri Jan 25, 2013 6:51 am
Posts: 3
Hi

I'm trying to implement a boundary constrained Linear Least Squares problem using ALGLIB.

To put the problem simply, I want to find the matrix W from:

X * W = T

where
X is a matrix with 50 columns and 3 rows (3 x 50),
W is a column matrix with 50 elements (50 x 1) and
T is a column matrix with 3 element (50 x 1)

The constraints are on the values of the elements of W - let's call the elements 'w'.
0 <= w <= 1.

I've looked at the lsfitlinearc function but there doesn't seem to be an option to include boundary constraints. I also looked at the lsfit_d_nlfb example but I can't seem to comprehend how I could use it for my problem *embarassed*.

Could someone kindly help me out?
Thanks!


Top
 Profile  
 
 Post subject: Re: Boundary Constrained Linear Least Squares?
PostPosted: Mon Jan 28, 2013 8:59 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You may reformulate it as general optimization problem and solve with BLEIC optimizer. It may take some time, but it should converge unless you have very badly conditioned problem.


Top
 Profile  
 
 Post subject: Re: Boundary Constrained Linear Least Squares?
PostPosted: Mon Jan 28, 2013 9:06 am 
Offline

Joined: Fri Jan 25, 2013 6:51 am
Posts: 3
Thanks for your reply, I solved it yesterday doing the same and using lsfitfit()


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group