Balancing optimization for sequencing