Resource optimization using combined simulation and genetic algorithms