- Timestamp:
- 05/23/12 16:29:46 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.CordeauGQAP/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.CordeauGQAP/3.3/CordeauGQAPInstanceProvider.cs
r7638 r7879 51 51 52 52 private const string FileName = "CordeauGQAP"; 53 53 54 54 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 55 55 var instanceArchiveName = GetResourceName(FileName + @"\.zip"); … … 98 98 private GQAPData Load(CordeauGQAPParser parser) { 99 99 var instance = new GQAPData(); 100 instance.BestKnownQuality = parser.BestKnownQuality; 100 101 instance.Equipments = parser.Equipments; 101 102 instance.Locations = parser.Locations; -
trunk/sources/HeuristicLab.Problems.Instances.CordeauGQAP/3.3/CordeauGQAPParser.cs
r7538 r7879 29 29 public int Locations { get; private set; } 30 30 public double TransportationCosts { get; private set; } 31 public double BestKnownQuality { get; private set; } 31 32 public double[,] Weights { get; private set; } 32 33 public double[,] Distances { get; private set; } … … 73 74 74 75 line = Continue(reader); 76 double bkq; 77 if (!double.TryParse(line, out bkq)) 78 BestKnownQuality = double.NaN; 79 else { 80 BestKnownQuality = bkq; 81 line = Continue(reader); 82 } 75 83 76 84 Weights = new double[Equipments, Equipments];
Note: See TracChangeset
for help on using the changeset viewer.