In this paper the problem of positioning a team of mobile robots for a surveillance task in a non-convex environment with obstacles is considered. The robots are equipped with global positioning capabilities (for instance they are equipped with GPS) and visual sensors able to monitor the surrounding environment. The goal is to maximize the area monitored by the team, by identifying the best configuration of the team members. Due to the non-convex nature of the problem, an analytical solution cannot be obtained. The proposed method is based on a new cognitive-based, adaptive optimization algorithm (CAO). This method allows getting coordinated and scalable controls to accomplish the task, even when the obstacles are unknown. Extensive simulations are presented to show the efficiency of the proposed approach.