Mobile distributed mesh network optimization with a black box optimizer