Skip to content
Prev 319823 / 398503 Next

quadprog issues---how to define the constriants

Hi Jiting,

On Fri, 15 Mar 2013, Jiting Xu <jiting.xu at gmail.com> writes:
shouldn't that be a symmetric matrix?
Could you post an example in which you get negative weights? Before you
do: how large, in absolute terms, are these negative values? If they are
like -1e-15, then they are simply "numeric noise".

(And you have specified the constraint w>=0. If you really want w>0 in a
meaningful sense, you will have to be more specific: you will have to
set w > eps, in which eps is the minimal weight that would be
sufficiently greater than zero in your application.)
Regards,
Enrico
Message-ID: <87a9pzyh5q.fsf@enricoschumann.net>
In-Reply-To: <CAPu4-NPV4-13vh7aV4B-kA5Gp153+5oMgbikJDVA2=Wd7qv_nQ@mail.gmail.com> (Jiting Xu's message of "Fri, 15 Mar 2013 11:43:59 -0400")