Open
Description
Commit 1ebf236 slightly changes RuinAndRecreateModule.java, by modifying the creation and populationof the HashSet from
Set<Job> ruinedJobSet = new HashSet<>(ruinedJobs);
ruinedJobSet.addAll(ruinedJobs);
to
Set<Job> ruinedJobSet = new HashSet<>(ruinedJobs);
Even though this should not produce any difference, as they are equivalents, I am obtaining slightly poorer results with the second approach on the optimizations I perform, in different projects with different constraints, with a number of services about 100, and 20-100 vehicles. I run it multiple times and the final cost is always equals or higher with the changes introduced in this commit.
Using JDK 1.8.0_192. Will prepare an example if I have time.
Metadata
Assignees
Labels
No labels