Optimal sequencing via structural simulation