Can i get a matlab code for optimal pmu placement based on the paper attached to this question...

i need a matlab code for the algorithm given in the paper attached to this.... pls someone help... its my final year project

4 Comments

No paper was attached.
If I were to give you the code, would I get the academic credit?
i've attached the paper..... i don want the whole program.... i jus want the binary connectivity matrix.... how can i implement the following expression in Matlab?
a(m,n)=1 if m=n
1 if bus m is connected to bus n
0 otherwise
in the form of matrix? where mxn=7x7....
connections are given below....
1-2
2-1,6,3,7
3-2,4,6
4-3,5,7
5-4
6-2,3
7-2,4
The resultant matrix should be
[1 1 0 0 0 0 0
1 1 1 0 0 1 1
0 1 1 1 0 1 0
1 0 1 0 1 0 1
0 0 0 1 1 0 0
0 1 1 0 0 1 0
0 1 0 1 0 0 1]... i shall be very thankful if anyone responds to my query
https://www.researchgate.net/publication/310006226_GAMS_Code_for_Optimal_PMU_Placement

Sign in to comment.

 Accepted Answer

If you have the connected pairs in the form of a list matrix
L=[m1,n1;
m2,n2;...]
then you can just use SPARSE
a=sparse(L(:,1),L(:,2),1);

3 Comments

can somebody teach me how to implement any algorithm coding to link with IEEE bus data for the optimal placement of PMU
can i have your gmail account for further queries i need it badly to know about this as i have been working and searching on it from the last couple of months and wasted almost my time

Sign in to comment.

Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!