A new genetic algorithm for flexible job-shop scheduling problems