I am trying to code up a method of moments algorithm for parameter estimation. I have a closed form for the moments as a function of the parameters, but these expressions are complicated, so there's no way to get a closed form expression for the parameters in terms of the moments.
My idea is to do the following. Given the parameters $(p_1,..., p_k)$, we can write the $j$th moment as $$\mu_j = f_j(p_1,..., p_k)$$ for some function $f_j$. My idea is to then use a numerical optimizer to solve $$\underset{(p_1,..., p_k) \in \Omega}{\text{argmin}} \sum_{i = 1}^{k} (\hat{\mu}_j - f_j(p_1,..., p_k))^2$$ where $\Omega$ is the set of suitable parameters (e.g. some may need to be nonnegative) and $\hat{\mu}_j$ is the $j$th sample moment. Is this the correct/standard approach in this setting? Is there any reason to do something else instead? Likelihood-based methods are also infeasible, since there's no clean way to write the likelihood in terms of the parameters.