diff --git a/jsprit-core/src/main/java/jsprit/core/problem/io/VrpXMLReader.java b/jsprit-core/src/main/java/jsprit/core/problem/io/VrpXMLReader.java index dcd0547d..35d74ec6 100644 --- a/jsprit-core/src/main/java/jsprit/core/problem/io/VrpXMLReader.java +++ b/jsprit-core/src/main/java/jsprit/core/problem/io/VrpXMLReader.java @@ -122,17 +122,17 @@ public class VrpXMLReader{ public VrpXMLReader(VehicleRoutingProblem.Builder vrpBuilder, Collection solutions){ this.vrpBuilder = vrpBuilder; - this.vehicleMap = new HashMap(); - this.serviceMap = new HashMap(); - this.shipmentMap = new HashMap(); + this.vehicleMap = new LinkedHashMap(); + this.serviceMap = new LinkedHashMap(); + this.shipmentMap = new LinkedHashMap(); this.solutions = solutions; } public VrpXMLReader(VehicleRoutingProblem.Builder vrpBuilder){ this.vrpBuilder = vrpBuilder; - this.vehicleMap = new HashMap(); - this.serviceMap = new HashMap(); - this.shipmentMap = new HashMap(); + this.vehicleMap = new LinkedHashMap(); + this.serviceMap = new LinkedHashMap(); + this.shipmentMap = new LinkedHashMap(); this.solutions = null; }