Hi. Im having a problem when using the EigenValue and SingularValueList functions, as a constraint for NMinimize. I have built a function that works fine and return a solution fast with now seemingly problems - actually I've tried many other ways of programming this simple function as well. The problem is that the NMinimize function evaluate the function in a way that causes Imaginary part of the polynomial - which is not supposed to happen if you first apply numerical values.
The code is in the attached file. Thanks for the help :)
Attachments: