Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/08/16 17:51:43 (8 years ago)
Author:
abeham
Message:

#2457: Worked on expert system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Common/3.3/ExpertSystem.cs

    r13667 r13668  
    123123    }
    124124
    125     [Storable(Name = "solutionPool")]
    126     private ItemList<IScope> oldBackwardsCompatible;
    127125    [Storable(Name = "newSolutionPool")]
    128126    private CheckedItemList<IScope> solutionPool;
     
    199197    private void AfterDeserialization() {
    200198      readOnlySuggestedInstances = suggestedInstances.AsReadOnly();
    201       // BackwardsCompatibility3.3
    202       #region Backwards compatible code, remove with trunk integration
    203       if (oldBackwardsCompatible != null) solutionPool = new CheckedItemList<IScope>(solutionPool);
    204       else if (solutionPool == null) solutionPool = new CheckedItemList<IScope>();
    205       #endregion
    206199      RegisterEventHandlers();
    207200    }
     
    364357      var selectedInstance = suggestedInstances[index];
    365358      var algorithm = (IAlgorithm)selectedInstance.Clone();
     359      algorithm.Problem = Problem.CloneProblem();
    366360      algorithm.Prepare(true);
    367361      IParameter stopParam;
     
    384378      var selectedInstance = suggestedInstances[index];
    385379      var algorithm = (IAlgorithm)selectedInstance.Clone();
     380      algorithm.Problem = Problem.CloneProblem();
    386381      algorithm.Prepare(true);
    387382      IParameter stopParam;
Note: See TracChangeset for help on using the changeset viewer.