Combinatorial-hybrid Optimization for Multi-agent Systems under Collaborative Tasks