Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 1000; i++) {
- Schedule candidate = mergeTwoTracksInOne(scheduleCurrent);
- if(candidate.isInvalid()) {
- continue;
- }
- neighbour = candidate;
- // while ((neighbour = mergeTwoTracksInOne(scheduleCurrent)).isInvalid()) ;
- double newFitness = neighbour.fitness();
- if (newFitness >= this.scheduleBest.fitness()) {
- scheduleBest = neighbour;
- scheduleCurrent = neighbour;
- System.out.println(scheduleCurrent.fitness());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement