Changeset 4856 for trunk/sources/HeuristicLab.Problems.VehicleRouting
- Timestamp:
- 11/19/10 15:27:10 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/General/TourEncoding.cs
r4722 r4856 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 using System.Text; 28 29 29 30 namespace HeuristicLab.Problems.VehicleRouting.Encodings.General { … … 67 68 public TourEncoding() { 68 69 Tours = new ItemList<Tour>(); 70 71 Tours.ToStringChanged += new System.EventHandler(Tours_ToStringChanged); 72 } 73 74 void Tours_ToStringChanged(object sender, System.EventArgs e) { 75 this.OnToStringChanged(); 69 76 } 70 77 … … 96 103 } 97 104 } 105 106 public override string ToString() { 107 StringBuilder sb = new StringBuilder(); 108 109 foreach (Tour tour in Tours) { 110 foreach (int city in tour.Cities) { 111 sb.Append(city); 112 sb.Append(" "); 113 } 114 115 sb.AppendLine(); 116 } 117 118 return sb.ToString(); 119 } 98 120 } 99 121 } -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs
r4852 r4856 200 200 : base(original, cloner) { 201 201 operators = original.operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 202 DistanceMatrixParameter.Value = DistanceMatrixParameter.Value;203 202 AttachEventHandlers(); 204 203 }
Note: See TracChangeset
for help on using the changeset viewer.