Hi Nicola,
Sorry for disturbing again, I have finally found time to follow your suggestion for
min_{x\inS}-1/2*x^T*Hx
S:={ |x|^2=1, Ax<0}
problem.cost = @(x) -1/2*x'*(H*x)+c*P(A*x);
problem.egrad = @(x) -H*x+c*grad_x P(A*x);
Where H and A are NxN(Sym) and MxN matrices (H\in GOE and A real ginibre). The problem I encounter is the choice of the penalty c. I have tried several approaches from literature, nevertheless, the number of satisfied constraints is about M/2.
I presume is a problem of scaling?
Could you please suggest or have you in mind a way to update c?
Thank you a lot and sorry again for disturbing!
Sirio