This document contains the description for the MATLAB source codes to simulate Fig. 4a of the paper

Mohit K. Sharma and Chandra R. Murthy, "Distributed Power Control for Multi-hop Energy Harvesting Links with Retransmission" IEEE Transactions on Wireless Communications, 2018

The following list contains description about the files in each directory, please read it carefully. 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


1. MHexpsetup_Splpolicy_ARQ_SF:  main file to evaluate the performance of the special case policy for a multihop link with slow fading channels

2. avg_energy_sf:  this function is called inside the main file to evaluate the remaining energy recursively

3. myfun_sf:  this function is called inside the main file and provides the handle to the function whose fixed point is to be found. 
              This is essentially used for obtaining the closed-form policy in the special case. 

4. MHexpsetup_EPP_Splcase_ARQ_SF: main file to evaluate the performance of equal power policy (EPP) for a multihop link with slow fading channels


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

For further queries please email: {smohit,cmurthy}@iisc.ac.in or mohit.sharma987@gmail.com
