A problem-adjusted genetic algorithm for flexibility design