In the wireless world, the devices face a unique challenge of energy scarcity. Unlike the wired systems, there is no continuous wired energy resource available to power the ongoing wireless communication. Instead, the entire system runs on wireless batteries. Taking a step further in this field, the concept of energy harvesting is introduced a while ago. This paper combines the concept of harvesting the energy wirelessly along with sharing of spectrum in a cognitive network system. A cooperative scheme is introduced which aims at increasing the throughput of both Primary Users (PUs) and Secondary Users (SUs). The simulations are done keeping in check with various constraints. This scheme is promising for the upcoming fifth generation (5G) technology since increased throughput directly corresponds to high data rate. We use Particle Swarm Optimization (PSO) algorithm to solve the optimization problem. In order to increase the efficiency of overall system, flexible time structure is also used. © 2017 IEEE.