I am new to optimization and recently bump into a problem where I have to optimize the correlation coefficient of a series of values with the absolute value of another vector under the linear constraint, but I am not sure if optimization correlation is possible and stable? If it is, should it be seen as nonlinear programming or quadratic programming? Any package recommendation in R?
Additional information: I have a vector B which is given,for example :\begin{bmatrix}25&7&0.2&5.8&1.17&0.25\end{bmatrix} I also have a matrix A which is also known:
\begin{bmatrix}0&1&-1&0&0&0\\-1&0&2&0&1&1\\1&0&-1&0&1&-1\end{bmatrix}
The vector V is unknown and the input value should have both positive and negative values:\begin{bmatrix}v1\\v2\\v3\\v4\\v5\\v6\end{bmatrix}
The linear constraint will be:
A V=0
The objective function is to maximize the correlation of the absolute value of vector V with vector B under the constraint that A V=0
Thank you!