Replicator dynamics in combinatorial optimization