Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7894


Ignore:
Timestamp:
05/24/12 11:54:30 (13 years ago)
Author:
svonolfe
Message:

Changed behavior of instance loading to allow the creation of experiments (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r7881 r7894  
    348348        Name = instance.Name;
    349349        Description = instance.Description;
    350         ProblemInstance = instance.ProblemInstance;
     350        if (ProblemInstance != null && instance.ProblemInstance != null &&
     351          instance.ProblemInstance.GetType() == ProblemInstance.GetType())
     352          SetProblemInstance(instance.ProblemInstance);
     353        else
     354          ProblemInstance = instance.ProblemInstance;
    351355
    352356        OnReset();
Note: See TracChangeset for help on using the changeset viewer.