Hello Our professor has asked us to program a power load flow script. He said that we are not allowed to use MATLAB! so this is the problem and I don't know how calculate the jacobian matrix or matrix inverse or other calculations when I'm not allowed to use MATLAB I have some basic knowledge of C++ and want to write my script using C++ The main problem is solving a set of linear equations with n variables and n equations I used to use MATLAB functions like ( inv => inverse ) to calculate inverse of a matrix and solve the equations. But now how can I solve a set of equations using C++? any help would be very appreciated.
I think you can calculate matrix value once you put it into the multidimensional array and follow the same formula which we use to find the metrix value on paper. Just fetch correct indexed element from the array and store the result in different variables.
y=mx+c is the equation for linear i believe. Put it in a multidimensional array and use the variables to calculate your output