% function [Xiter,Z] = ESDPD(PP,m,dd)
% Solving Sensor Localization System
%
% Input:
% PP:  2xn matrix representing all point on 2D
% m :  the number of Anchor points; last m columns of PP
% dd:  the upper triangle sparse (and noisy) distance matrix 
%
% Output:
% Xiter: computed sensor positions
% Z    : individual traces
%
% Developed by Zizhuo Wang, Song Zheng, Boyd and Yinyu Ye for demonstration;
% see paper http://www.stanford.edu/~yyye/relaxationsdp6.pdf
% available at http://www.stanford.edu/~yyye/Col.html
% Edge based decomposition