Hi,
I am trying to solve a system of equations of the form :
where we need to solve for Xi given that Ai and Bi are known numbers for i=1,2...30 and Sum is the summation operator, with constraints : 1) Sum of Bi=30 and 2) Sum of Xi=1
I am trying to use the procedure described in https://www.stata.com/support/faqs/p...ear-equations/, but I have 30 equations here. Is there a simple way to code this in Mata.
Any help is much appreciated.
Thank you
I am trying to solve a system of equations of the form :
Code:
Ai = Bi [Xi - Sum {Bi*Xi}]
I am trying to use the procedure described in https://www.stata.com/support/faqs/p...ear-equations/, but I have 30 equations here. Is there a simple way to code this in Mata.
Any help is much appreciated.
Thank you
Comment