I am new to optimization and I will try to state my question as clear as I can. I need to solve this constraint optimization problem.
I want to find real vectors $\mathbf{f}$ and $\mathbf{g}$ that minimize $e^2$ $$ e^2 = \mathbf{f}^TR_{yy}\mathbf{f}+\mathbf{g}^TR_{aa}\mathbf{g} -2\mathbf{f}^TR_{ya}\mathbf{g} $$ where $R_{yy}$,$R_{aa}$, and $R_{ya}$ are known. And
$$\mathbf{f}=[f_0 f_1 …f_n]^T$$ $$\mathbf{g}=[g_0 g_1 …g_m]^T$$
The constraint is on the last coefficient of $\mathbf{g}$ i-e $g_m=g_0g_1$.
My understanding is that $\mathbf{f}$ can be found by differentiating $e^2$ wrt $\mathbf{f}$ and equating it to zero.This leads to $\mathbf{f}_{opt}=R_{yy}^{-1}R_{ya}\mathbf{g}$. I thought of finding $g_i$ for $i=0,1,…,m-1$ in the same manner but this leads me to trivial solution $g_i=0 \forall i=0,1,…,m-1$. I understand I need to include constraints in my original equation to get to actual coefficients but I don't know how to do that. I will appreciate if someone can give me some useful lead here.