It would help greatly if we had the context for this problem. It looks to me like some sort of least-squares fit (maybe log-likelihood?). Please define every single variable I see. That is, what are each of the following:

Do any of these variables depend on any of the others, aside from depending on and