Recently, wireless power transfer technology, which is transmitted via radiofrequency power, is considered as a promising technology. This technology providesa cost-effective energy supply to low-power devices in the future era of the Internetof Things. However, there will a large number of devices in electromagneticenvironments, so they can interfere with each other. To achieve effective powerdelivery in space, this paper proposes an efficient beamformer that can focusenergy on the direction of the desired people and minimize energy in the directionof undesired people (interferences). This beamformer is based on binary batalgorithm and on the technique of controlling complex weights. The results provethat the proposed beamformer can effectively maintain the main lobe, suppressinterferences, and surpass a beamformer based on binary particle swarmoptimization in terms of sidelobe suppression ability and computational time.