Research Article

Energy Efficient Design for Two-Way AF Relay Networks

Algorithm 1

Optimal power allocation (OPA) algorithm.
Step  1. Initialization, , , .
Step  2. Calculate and according to (12a)–(12c) and (14). Set and .
Step  3. Set .
Step  4. If its first derivative with respect to satisfies , then , else .
Step  5. Repeat Step  3 until where is a small positive constant to control the convergence accuracy.
Step  6. Calculate the optimal solution , according to (12a)–(12c).