Changeset 7548 for branches/GeneralizedQAP/UnitTests
- Timestamp:
- 03/05/12 16:30:27 (13 years ago)
- Location:
- branches/GeneralizedQAP/UnitTests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/UnitTests/CordeauCrossoverTest.cs
r7538 r7548 34 34 public void CordeauCrossoverFunctionalityTest() { 35 35 var provider = new CordeauGQAPInstanceProvider(); 36 var instance = provider.Load Instance(provider.GetInstanceDescriptors().First());36 var instance = provider.LoadData(provider.GetDataDescriptors().First()); 37 37 var gqap = new GeneralizedQuadraticAssignmentProblem(); 38 gqap.Load From(instance);38 gqap.Load(instance); 39 39 40 40 var random = new MersenneTwister(); -
branches/GeneralizedQAP/UnitTests/CordeauGQAPInstanceProviderTest.cs
r7538 r7548 34 34 StringBuilder erroneousInstances = new StringBuilder(); 35 35 int count = 0; 36 foreach (var id in target.Get InstanceDescriptors()) {36 foreach (var id in target.GetDataDescriptors()) { 37 37 try { 38 target.Load Instance(id);38 target.LoadData(id); 39 39 } catch (Exception ex) { 40 40 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); -
branches/GeneralizedQAP/UnitTests/ElloumiCTAPInstanceProviderTest.cs
r7538 r7548 34 34 StringBuilder erroneousInstances = new StringBuilder(); 35 35 int count = 0; 36 foreach (var id in target.Get InstanceDescriptors()) {36 foreach (var id in target.GetDataDescriptors()) { 37 37 try { 38 target.Load Instance(id);38 target.LoadData(id); 39 39 } catch (Exception ex) { 40 40 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); -
branches/GeneralizedQAP/UnitTests/QAPLIBInstanceProviderTest.cs
r7538 r7548 35 35 StringBuilder erroneousInstances = new StringBuilder(); 36 36 int count = 0; 37 foreach (var id in target.Get InstanceDescriptors()) {37 foreach (var id in target.GetDataDescriptors()) { 38 38 try { 39 target.Load Instance(id);39 target.LoadData(id); 40 40 } catch (Exception ex) { 41 41 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); … … 54 54 List<string> nonZeroDiagonalInstances = new List<string>(); 55 55 var target = new QAPLIBInstanceProvider(); 56 foreach (var id in target.Get InstanceDescriptors()) {57 var instance = target.Load Instance(id);56 foreach (var id in target.GetDataDescriptors()) { 57 var instance = target.LoadData(id); 58 58 for (int i = 0; i < instance.Dimension; i++) 59 59 if (instance.Distances[i, i] != 0 || instance.Weights[i, i] != 0) { -
branches/GeneralizedQAP/UnitTests/TSPLIBInstanceProviderTest.cs
r7538 r7548 34 34 StringBuilder erroneousInstances = new StringBuilder(); 35 35 int count = 0; 36 foreach (var id in target.Get InstanceDescriptors()) {36 foreach (var id in target.GetDataDescriptors()) { 37 37 try { 38 target.Load Instance(id);38 target.LoadData(id); 39 39 } catch (Exception ex) { 40 40 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); … … 51 51 StringBuilder erroneousInstances = new StringBuilder(); 52 52 int count = 0; 53 foreach (var id in target.Get InstanceDescriptors()) {53 foreach (var id in target.GetDataDescriptors()) { 54 54 try { 55 target.Load Instance(id);55 target.LoadData(id); 56 56 } catch (Exception ex) { 57 57 erroneousInstances.AppendLine(id.Name + ": " + ex.Message); … … 68 68 StringBuilder erroneousInstances = new StringBuilder(); 69 69 int count = 0; 70 foreach (var id in target.Get InstanceDescriptors()) {70 foreach (var id in target.GetDataDescriptors()) { 71 71 try { 72 target.Load Instance(id);72 target.LoadData(id); 73 73 } catch (Exception ex) { 74 74 erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
Note: See TracChangeset
for help on using the changeset viewer.