Skip to content

quadprog issues---how to define the constriants

2 messages · Jiting Xu, Enrico Schumann

3 days later
#
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