Main_Optimal.m PowerAllocation.m relay_adaptive_sub.m Relay_channel_model.m Relay_power.m Relay_sub.m RelaySelectionFair.m RN_deployment.m root.m Sub_allocation.m SubcarrierAllocation.m waterfilling.m channel_deployment.m CompareCapacity.m Lagrange_multipliers.m langrange_dual.m