MPC-based autonomous assignment algorithm for a swarm of satellites