- Timestamp:
- 08/12/15 10:29:01 (9 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/ExpertSystemOptimizer.cs
r12842 r12847 41 41 public static new Image StaticItemImage { 42 42 get { return VSImageLibrary.Library; } 43 } 44 45 [Storable] 46 private int maximumEvaluations; 47 public int MaximumEvaluations { 48 get { return maximumEvaluations; } 49 set { 50 if (maximumEvaluations == value) return; 51 maximumEvaluations = value; 52 OnPropertyChanged("MaximumEvaluations"); 53 } 43 54 } 44 55 … … 104 115 } 105 116 117 [Storable] 118 private ItemList<IAlgorithm> suggestedInstances; 119 private ReadOnlyItemList<IAlgorithm> readOnlySuggestedInstances; 120 public ReadOnlyItemList<IAlgorithm> SuggestedInstances { 121 get { return readOnlySuggestedInstances; } 122 } 123 106 124 public IEnumerable<IOptimizer> NestedOptimizers { 107 get { yield break; }125 get { return SuggestedInstances; } 108 126 } 109 127 … … 117 135 knowledgeBase = cloner.Clone(original.knowledgeBase); 118 136 problem = cloner.Clone(original.problem); 137 suggestedInstances = cloner.Clone(original.suggestedInstances); 138 readOnlySuggestedInstances = suggestedInstances.AsReadOnly(); 119 139 } 120 140 public ExpertSystemOptimizer() { 121 141 Runs = new RunCollection(); 142 KnowledgeBase = new RunCollection(); 143 suggestedInstances = new ItemList<IAlgorithm>(); 144 readOnlySuggestedInstances = suggestedInstances.AsReadOnly(); 122 145 ExecutionState = ExecutionState.Stopped; 123 146 ExecutionTime = TimeSpan.Zero; … … 126 149 public override IDeepCloneable Clone(Cloner cloner) { 127 150 return new ExpertSystemOptimizer(this, cloner); 151 } 152 153 [StorableHook(HookType.AfterDeserialization)] 154 private void AfterDeserialization() { 155 readOnlySuggestedInstances = suggestedInstances.AsReadOnly(); 128 156 } 129 157 -
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Plugin.cs.frame
r12842 r12847 28 28 [Plugin("HeuristicLab.OptimizationExpertSystem", "3.3.12.$WCREV$")] 29 29 [PluginFile("HeuristicLab.OptimizationExpertSystem-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Analysis", "3. 7.0")]30 [PluginDependency("HeuristicLab.Analysis", "3.3")] 31 31 [PluginDependency("HeuristicLab.Collections", "3.3")] 32 32 [PluginDependency("HeuristicLab.Common", "3.3")]
Note: See TracChangeset
for help on using the changeset viewer.