Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@FedericoPoloni you are right - numerical error is detected as small negative eigenvalues within the optimization package... I will check if there is a way to set a larger tolerance. But if not, how would I deflate the problem? I know how I could deflate the matrix, for example by doing SVD, but then I would need to translate my optimization problem in that space... Hopefully I can just increase the tolerance or error
Thanks @Suvrit a lot for your answer. I will check the details, sorry I'm not too familiar with this subject. All I'm saying is that when I specify [ C C; C C ] matrix in my optimization routine (joptimizer), it complains it's not positive (semi-)definite. That might be a bug in their code too...
Strange, then why is my optimization package complaining it's not either positive definite, nor positive semi-definite? Are you sure? (Sorry for this lame question!)
@Shamisen min (a_T * x + 1/2 * x_T * M * x), where x <= 0, a - real valued vector, M = [ C, -C; -C, C ], and C is some covariance matrix (symmetric positive definite).