omment">% number of nodes (including the root node which is labeled as 1)</span>

<span class="comment">% parent node array</span>
<span class="comment">% specifies which node is a unique parent for node i (always have a tree)</span>
parent(1) = 0; <span class="comment">% root node does not have a valid parent</span>
parent(2) = 1;
parent(3) = 2;
parent(4) = 3;
parent(5) = 2;
parent(6) = 5;

<span class="comment">% problem constants</span>
Rsource = 0.1;
l = 1*ones(N-1,1);
alpha = 1*ones(N-1,1);
beta  = 1*o