forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 7:32 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  [ 2 posts ] 
Author Message
 Post subject: Constraint on weighted sum of variables (minasa)
PostPosted: Thu Nov 25, 2010 2:24 pm 
Offline

Joined: Thu Nov 25, 2010 2:15 pm
Posts: 1
Hi!

I've been looking all over the internet for a QP solver, and then I found ALGLIB.
I need to maximize the following function (I'm implementing an SVM):

sum(i from 1 to L) a_i - 0.5*a'*H*a

a being a vector of length L, a_i the elements of a and H an L*L symmetric matrix.

The constraints:

0 <= a_i <= C where C is a predetermined constant

and

sum(i from 1 to L) a_i*y_i = 0

y_i are the classes of each of the L training examples i have provided the SVM, and y_i takes on the values of either 1 och -1.

It is this last constraint that I am uncertian on how to implement using the minasa subpackage. Is it even possible?


Top
 Profile  
 
 Post subject: Re: Constraint on weighted sum of variables (minasa)
PostPosted: Thu Nov 25, 2010 7:51 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
It is impossible for now (unless you try to play with penalty functions). But it is possible that next release of ALGLIB will include optimizer for a combination of bound and linear constraints.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group