Recently, wireless power transfer technology, which is transmitted via radio frequency power, is considered as a promising technology. This technology provides a cost-effective energy supply to low-power devices in the future era of the Internet of Things. However, there will a large number of devices in electromagnetic environments, so they can interfere with each other. To achieve effective power delivery in space, this paper proposes an efficient beamformer that can focus energy on the direction of the desired people and minimize energy in the direction of undesired people (interferences). This beamformer is based on binary bat algorithm and on the technique of controlling complex weights. The results prove that the proposed beamformer can effectively maintain the main lobe, suppress interferences, and surpass a beamformer based on binary particle swarm optimization in terms of sidelobe suppression ability and computational time.