Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/12 16:30:27 (13 years ago)
Author:
abeham
Message:

#1614: changed according to architects review

Location:
branches/GeneralizedQAP/UnitTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/UnitTests/CordeauCrossoverTest.cs

    r7538 r7548  
    3434    public void CordeauCrossoverFunctionalityTest() {
    3535      var provider = new CordeauGQAPInstanceProvider();
    36       var instance = provider.LoadInstance(provider.GetInstanceDescriptors().First());
     36      var instance = provider.LoadData(provider.GetDataDescriptors().First());
    3737      var gqap = new GeneralizedQuadraticAssignmentProblem();
    38       gqap.LoadFrom(instance);
     38      gqap.Load(instance);
    3939
    4040      var random = new MersenneTwister();
  • branches/GeneralizedQAP/UnitTests/CordeauGQAPInstanceProviderTest.cs

    r7538 r7548  
    3434      StringBuilder erroneousInstances = new StringBuilder();
    3535      int count = 0;
    36       foreach (var id in target.GetInstanceDescriptors()) {
     36      foreach (var id in target.GetDataDescriptors()) {
    3737        try {
    38           target.LoadInstance(id);
     38          target.LoadData(id);
    3939        } catch (Exception ex) {
    4040          erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
  • branches/GeneralizedQAP/UnitTests/ElloumiCTAPInstanceProviderTest.cs

    r7538 r7548  
    3434      StringBuilder erroneousInstances = new StringBuilder();
    3535      int count = 0;
    36       foreach (var id in target.GetInstanceDescriptors()) {
     36      foreach (var id in target.GetDataDescriptors()) {
    3737        try {
    38           target.LoadInstance(id);
     38          target.LoadData(id);
    3939        } catch (Exception ex) {
    4040          erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
  • branches/GeneralizedQAP/UnitTests/QAPLIBInstanceProviderTest.cs

    r7538 r7548  
    3535      StringBuilder erroneousInstances = new StringBuilder();
    3636      int count = 0;
    37       foreach (var id in target.GetInstanceDescriptors()) {
     37      foreach (var id in target.GetDataDescriptors()) {
    3838        try {
    39           target.LoadInstance(id);
     39          target.LoadData(id);
    4040        } catch (Exception ex) {
    4141          erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
     
    5454      List<string> nonZeroDiagonalInstances = new List<string>();
    5555      var target = new QAPLIBInstanceProvider();
    56       foreach (var id in target.GetInstanceDescriptors()) {
    57         var instance = target.LoadInstance(id);
     56      foreach (var id in target.GetDataDescriptors()) {
     57        var instance = target.LoadData(id);
    5858        for (int i = 0; i < instance.Dimension; i++)
    5959          if (instance.Distances[i, i] != 0 || instance.Weights[i, i] != 0) {
  • branches/GeneralizedQAP/UnitTests/TSPLIBInstanceProviderTest.cs

    r7538 r7548  
    3434      StringBuilder erroneousInstances = new StringBuilder();
    3535      int count = 0;
    36       foreach (var id in target.GetInstanceDescriptors()) {
     36      foreach (var id in target.GetDataDescriptors()) {
    3737        try {
    38           target.LoadInstance(id);
     38          target.LoadData(id);
    3939        } catch (Exception ex) {
    4040          erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
     
    5151      StringBuilder erroneousInstances = new StringBuilder();
    5252      int count = 0;
    53       foreach (var id in target.GetInstanceDescriptors()) {
     53      foreach (var id in target.GetDataDescriptors()) {
    5454        try {
    55           target.LoadInstance(id);
     55          target.LoadData(id);
    5656        } catch (Exception ex) {
    5757          erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
     
    6868      StringBuilder erroneousInstances = new StringBuilder();
    6969      int count = 0;
    70       foreach (var id in target.GetInstanceDescriptors()) {
     70      foreach (var id in target.GetDataDescriptors()) {
    7171        try {
    72           target.LoadInstance(id);
     72          target.LoadData(id);
    7373        } catch (Exception ex) {
    7474          erroneousInstances.AppendLine(id.Name + ": " + ex.Message);
Note: See TracChangeset for help on using the changeset viewer.