Changeset 9467 for branches/LearningClassifierSystems
- Timestamp:
- 05/08/13 14:12:00 (12 years ago)
- Location:
- branches/LearningClassifierSystems
- Files:
-
- 3 added
- 101 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LearningClassifierSystems
-
Property
svn:mergeinfo
set to
/trunk/sources/HeuristicLab.Core merged eligible
-
Property
svn:mergeinfo
set to
-
branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/LearningClassifierSystem.cs
r9242 r9467 118 118 get { return (ValueParameter<IntValue>)Parameters["MaxIterations"]; } 119 119 } 120 public IConstrainedValueParameter<ISelector> SelectorParameter { 121 get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; } 122 } 120 123 public IConstrainedValueParameter<ICrossover> CrossoverParameter { 121 124 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } … … 213 216 get { return FinalAnalyzerParameter.Value; } 214 217 set { FinalAnalyzerParameter.Value = value; } 218 } 219 public ISelector Selector { 220 get { return SelectorParameter.Value; } 221 set { SelectorParameter.Value = value; } 215 222 } 216 223 public ICrossover Crossover { … … 254 261 Parameters.Add(new ValueParameter<MultiAnalyzer>("FinalAnalyzer", "The operator used to analyze the last generation.", new MultiAnalyzer())); 255 262 Parameters.Add(new ValueParameter<IntValue>("MaxIterations", "The maximum number of iterations.", new IntValue(1000))); 263 Parameters.Add(new ConstrainedValueParameter<ISelector>("Selector", "The operator used to select solutions.")); 256 264 Parameters.Add(new ConstrainedValueParameter<ICrossover>("Crossover", "The operator used to cross solutions.")); 257 265 Parameters.Add(new ConstrainedValueParameter<IManipulator>("Mutator", "The operator used to mutate solutions.")); … … 276 284 mainLoop.FinalAnalyzerParameter.ActualName = FinalAnalyzerParameter.Name; 277 285 mainLoop.MaxIterationsParameter.ActualName = MaxIterationsParameter.Name; 286 mainLoop.SelectorParameter.ActualName = SelectorParameter.Name; 278 287 mainLoop.CrossoverParameter.ActualName = CrossoverParameter.Name; 279 288 mainLoop.MutatorParameter.ActualName = MutatorParameter.Name; … … 303 312 ParameterizeEvaluator(Problem.Evaluator); 304 313 MainLoop.SetCurrentProblem(Problem); 314 UpdateSelectors(); 305 315 UpdateCrossovers(); 306 316 UpdateMutators(); 307 317 UpdateAnalyzers(); 318 ParameterizeSelectors(); 308 319 ParameterizeManipulator(); 309 320 } … … 311 322 } 312 323 313 private void ParameterizeManipulator() {314 foreach (var op in Problem.Operators.OfType<IProbabilityMutatorOperator>()) {315 op.ProbabilityParameter.ActualName = MutationProbabilityParameter.Name;316 }317 }318 324 protected override void Problem_EvaluatorChanged(object sender, EventArgs e) { 319 325 ParameterizeEvaluator(Problem.Evaluator); … … 326 332 } 327 333 protected override void Problem_OperatorsChanged(object sender, EventArgs e) { 334 UpdateSelectors(); 328 335 UpdateCrossovers(); 329 336 UpdateMutators(); 330 337 UpdateAnalyzers(); 338 ParameterizeSelectors(); 331 339 ParameterizeManipulator(); 332 340 base.Problem_OperatorsChanged(sender, e); 333 341 } 334 342 343 private void ParameterizeSelectors() { 344 foreach (ISelector selector in SelectorParameter.ValidValues) { 345 selector.CopySelected = new BoolValue(true); 346 selector.NumberOfSelectedSubScopesParameter.Value = new IntValue(4); 347 selector.NumberOfSelectedSubScopesParameter.Hidden = true; 348 ParameterizeStochasticOperator(selector); 349 } 350 if (Problem != null) { 351 foreach (IXCSSelector selector in SelectorParameter.ValidValues.OfType<IXCSSelector>()) { 352 selector.NumerosityParameter.ActualName = Problem.Evaluator.NumerosityParameter.ActualName; 353 selector.NumerosityParameter.Hidden = true; 354 } 355 foreach (ISingleObjectiveSelector selector in SelectorParameter.ValidValues.OfType<ISingleObjectiveSelector>()) { 356 selector.MaximizationParameter.ActualName = Problem.MaximizationParameter.Name; 357 selector.MaximizationParameter.Hidden = true; 358 selector.QualityParameter.ActualName = Problem.Evaluator.FitnessParameter.ActualName; 359 selector.QualityParameter.Hidden = true; 360 } 361 } 362 } 363 private void ParameterizeManipulator() { 364 foreach (var op in Problem.Operators.OfType<IProbabilityMutatorOperator>()) { 365 op.ProbabilityParameter.ActualName = MutationProbabilityParameter.Name; 366 } 367 } 335 368 private void ParameterizeEvaluator(IXCSEvaluator evaluator) { 336 369 evaluator.ActualTimeParameter.ActualName = "Iteration"; … … 339 372 evaluator.PowerParameter.ActualName = PowerParameter.Name; 340 373 evaluator.ErrorZeroParameter.ActualName = ErrorZeroParameter.Name; 374 } 375 private void ParameterizeStochasticOperator(IOperator op) { 376 IStochasticOperator stochasticOp = op as IStochasticOperator; 377 if (stochasticOp != null) { 378 stochasticOp.RandomParameter.ActualName = RandomCreator.RandomParameter.ActualName; 379 stochasticOp.RandomParameter.Hidden = true; 380 } 381 } 382 383 private void UpdateSelectors() { 384 ISelector oldSelector = SelectorParameter.Value; 385 SelectorParameter.ValidValues.Clear(); 386 ISelector defaultSelector = Problem.Operators.OfType<IXCSSelector>().FirstOrDefault(); 387 if (defaultSelector == null) { 388 defaultSelector = Problem.Operators.OfType<ISelector>().FirstOrDefault(); 389 } 390 391 foreach (ISelector selector in Problem.Operators.OfType<ISelector>().OrderBy(x => x.Name)) 392 SelectorParameter.ValidValues.Add(selector); 393 394 if (oldSelector != null) { 395 ISelector selector = SelectorParameter.ValidValues.FirstOrDefault(x => x.GetType() == oldSelector.GetType()); 396 if (selector != null) SelectorParameter.Value = selector; 397 else oldSelector = null; 398 } 399 if (oldSelector == null && defaultSelector != null) 400 SelectorParameter.Value = defaultSelector; 341 401 } 342 402 -
branches/LearningClassifierSystems/HeuristicLab.Algorithms.LearningClassifierSystems/3.3/LearningClassifierSystemMainLoop.cs
r9242 r9467 25 25 using HeuristicLab.Encodings.ConditionActionEncoding; 26 26 using HeuristicLab.Operators; 27 using HeuristicLab.Optimization;28 27 using HeuristicLab.Optimization.Operators; 29 28 using HeuristicLab.Parameters; … … 42 41 43 42 #region Parameter Properties 44 public IConstrainedValueParameter<ISelector> SelectorParameter {45 get { return (IConstrainedValueParameter<ISelector>)Parameters["Selector"]; }43 public ValueLookupParameter<IOperator> SelectorParameter { 44 get { return adaptedGeneticAlgorithmMainLoop.SelectorParameter; } 46 45 } 47 46 public ValueLookupParameter<PercentValue> CrossoverProbabilityParameter { … … 108 107 private void Initialize() { 109 108 #region Create parameters 110 Parameters.Add(new ConstrainedValueParameter<ISelector>("Selector", "The operator used to select solutions for reproduction.", new ItemSet<ISelector>() { new ProportionalSelector() }, new ProportionalSelector()));111 109 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator used to evaluate solutions. This operator is executed in parallel, if an engine is used which supports parallelization.")); 112 110 XCSAfterCopyingParentOperator afterCopyingParents = new XCSAfterCopyingParentOperator(); … … 273 271 subsumptionSelector.CopySelected = new BoolValue(false); 274 272 275 SelectorParameter.Value.CopySelected = new BoolValue(true);276 SelectorParameter.Value.NumberOfSelectedSubScopesParameter.Value = new IntValue(4);277 278 273 evaluator.Name = "Evaluator"; 279 274 … … 320 315 afterCrossover.ParentAverageActionSetSizeParameter.ActualName = "AverageActionSetSize"; 321 316 322 adaptedGeneticAlgorithmMainLoop.SelectorParameter.ActualName = SelectorParameter.Name;323 317 adaptedGeneticAlgorithmMainLoop.RandomParameter.ActualName = "Random"; 324 318 adaptedGeneticAlgorithmMainLoop.MaximumGenerationsParameter.ActualName = "ZeroIntValue"; … … 428 422 } 429 423 430 private void ParameterizeStochasticOperator(IOperator op) {431 IStochasticOperator stochasticOp = op as IStochasticOperator;432 if (stochasticOp != null) {433 stochasticOp.RandomParameter.ActualName = "Random";434 stochasticOp.RandomParameter.Hidden = true;435 }436 }437 438 424 internal void SetCurrentProblem(IConditionActionProblem problem) { 439 425 initialSolutionsCreator.SolutionCreatorParameter.ActualName = problem.SolutionCreatorParameter.Name; … … 485 471 adaptedGeneticAlgorithmMainLoop.SetChildName(problem.ChildName); 486 472 } 487 //private void ParameterizeSelectors() {488 // foreach (ISelector selector in SelectorParameter.ValidValues) {489 // selector.CopySelected = new BoolValue(true);490 // //set value by parameter!491 // selector.NumberOfSelectedSubScopesParameter.Value = new IntValue(5);492 // selector.NumberOfSelectedSubScopesParameter.Hidden = true;493 // ParameterizeStochasticOperator(selector);494 // }495 // if (Problem != null) {496 // foreach (ISingleObjectiveSelector selector in SelectorParameter.ValidValues.OfType<ISingleObjectiveSelector>()) {497 // selector.MaximizationParameter.Value = new BoolValue(true);498 // selector.MaximizationParameter.Hidden = true;499 // selector.QualityParameter.ActualName = Problem.Evaluator.QualityParameter.ActualName;500 // selector.QualityParameter.Hidden = true;501 // }502 // }503 //}504 473 } 505 474 } -
branches/LearningClassifierSystems/HeuristicLab.Core
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Core merged: 9339,9343,9405,9456,9462
- Property svn:mergeinfo changed
-
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Attributes/CreatableAttribute.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Attributes/ItemAttribute.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/CheckedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/CheckedItemList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ConstraintCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ItemArray.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs
r9194 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ItemList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/NamedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/OperationCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/OperatorCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/OperatorList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/OperatorSet.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ParameterCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyCheckedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyCheckedItemList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs
r8610 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ScopeList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/ValueParameterCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Collections/VariableCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Constraints/ComparisonConstraint.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Constraints/Constraint.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Constraints/ConstraintOperation.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Constraints/EqualityConstraint.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Constraints/IConstraint.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Constraints/TypeCompatibilityConstraint.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Engine.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 145 145 146 146 OnStarted(); 147 lastUpdateTime = DateTime. Now;147 lastUpdateTime = DateTime.UtcNow; 148 148 System.Timers.Timer timer = new System.Timers.Timer(250); 149 149 timer.AutoReset = true; … … 156 156 timer.Elapsed -= new System.Timers.ElapsedEventHandler(timer_Elapsed); 157 157 timer.Stop(); 158 ExecutionTime += DateTime. Now - lastUpdateTime;158 ExecutionTime += DateTime.UtcNow - lastUpdateTime; 159 159 } 160 160 … … 166 166 System.Timers.Timer timer = (System.Timers.Timer)sender; 167 167 timer.Enabled = false; 168 DateTime now = DateTime. Now;168 DateTime now = DateTime.UtcNow; 169 169 ExecutionTime += now - lastUpdateTime; 170 170 lastUpdateTime = now; -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Executable.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/ExecutionContext.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/ExecutionState.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IAtomicOperation.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/ICheckedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/ICheckedItemList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/ICheckedMultiOperator.cs
r9151 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IConstrainedValueParameter.cs
r8121 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IEngine.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IExecutable.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IExecutionContext.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IFixedValueParameter.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IItem.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IItemArray.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IItemDictionary.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IItemList.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IItemSet.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IKeyedItemCollection.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/ILog.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/ILookupParameter.cs
r9204 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IMultiOperator.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/INamedItem.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IOperation.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IOperator.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IParameter.cs
r9204 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IParameterizedItem.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IParameterizedNamedItem.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IRandom.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IScope.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IScopeTreeLookupParameter.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IStatefulItem.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IValueLookupParameter.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IValueParameter.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Interfaces/IVariable.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Item.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Log.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/NamedItem.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/OperatorExecutionException.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using System; 23 using System.Diagnostics; 23 24 24 25 namespace HeuristicLab.Core { 25 26 public class OperatorExecutionException : Exception { 26 private IOperator op;27 private readonly IOperator op; 27 28 public IOperator Operator { 28 29 get { return op; } 29 30 } 31 32 private readonly string message; 30 33 public override string Message { 31 34 get { 32 35 string name = "\"" + op.Name + "\""; 33 36 if (!op.Name.Equals(op.ItemName)) name += " (" + op.ItemName + ")"; 34 37 if (!string.IsNullOrEmpty(op.GetType().Assembly.Location)) { 38 var fvi = FileVersionInfo.GetVersionInfo(op.GetType().Assembly.Location); 39 name += " [" + fvi.FileName + ": " + fvi.FileVersion + "]"; 40 } 35 41 if (InnerException == null) 36 return base.Message + name + ".";42 return base.Message + name + message + "."; 37 43 else 38 44 return base.Message + name + ": " + InnerException.Message; … … 40 46 } 41 47 42 public OperatorExecutionException(IOperator op) 48 public OperatorExecutionException(IOperator op) : this(op, string.Empty) { } 49 public OperatorExecutionException(IOperator op, string message) 43 50 : base("An exception was thrown by the operator ") { 44 51 if (op == null) throw new ArgumentNullException(); 45 52 this.op = op; 53 this.message = message; 46 54 } 47 55 public OperatorExecutionException(IOperator op, Exception innerException) -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/OperatorGraph.cs
r9178 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/ParameterizedNamedItem.cs
r7706 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/PersistenceContentManager.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Plugin.cs.frame
r8246 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 /// Plugin class for HeuristicLab.Core plugin. 30 30 /// </summary> 31 [Plugin("HeuristicLab.Core", "3.3. 7.$WCREV$")]31 [Plugin("HeuristicLab.Core", "3.3.8.$WCREV$")] 32 32 [PluginFile("HeuristicLab.Core-3.3.dll", PluginFileType.Assembly)] 33 33 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Properties/AssemblyInfo.cs.frame
r8246 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 32 32 [assembly: AssemblyCompany("")] 33 33 [assembly: AssemblyProduct("HeuristicLab")] 34 [assembly: AssemblyCopyright("(c) 2002-201 2HEAL")]34 [assembly: AssemblyCopyright("(c) 2002-2013 HEAL")] 35 35 [assembly: AssemblyTrademark("")] 36 36 [assembly: AssemblyCulture("")] … … 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 7.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.8.$WCREV$")] -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Scope.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/ThreadSafeLog.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Core/3.3/Variable.cs
r7259 r9467 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/HeuristicLab.Encodings.ConditionActionEncoding-3.3.csproj
r9411 r9467 120 120 <Compile Include="Interfaces\IConditionActionSolution.cs" /> 121 121 <Compile Include="Interfaces\IXCSModel.cs" /> 122 <Compile Include="Interfaces\IXCSSelector.cs" /> 122 123 <Compile Include="Interfaces\IXCSSolution.cs" /> 123 124 <Compile Include="Manipulator\IProbabilityMutatorOperator.cs" /> … … 137 138 <Compile Include="Reinforcement\IActionExecuter.cs" /> 138 139 <Compile Include="Reinforcement\IClassifierFetcher.cs" /> 140 <Compile Include="Selection\ProportionalTournamentSelector.cs" /> 139 141 <Compile Include="Subsumption\ActionSetSubsumptionOperator.cs" /> 140 142 <Compile Include="Subsumption\CheckGASubsumptionOperator.cs" /> -
branches/LearningClassifierSystems/HeuristicLab.Encodings.ConditionActionEncoding/3.3/Interfaces/IConditionActionProblem.cs
r9411 r9467 28 28 string ChildName { get; } 29 29 30 IParameter MaximizationParameter { get; } 31 30 32 new IConditionActionProblemData ProblemData { get; } 31 33 IParameter ActionExecuterParameter { get; } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Creators/UniformRandomVariableVectorCreator.cs
r9226 r9467 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 25 using HeuristicLab.Parameters; 24 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 27 … … 30 32 31 33 #region Parameter Properties 34 public ILookupParameter<PercentValue> ChangeSymbolProbabilityParameter { 35 get { return (ILookupParameter<PercentValue>)Parameters["ChangeSymbolProbability"]; } 36 } 32 37 #endregion 33 38 … … 39 44 public UniformRandomVariableVectorCreator() 40 45 : base() { 46 Parameters.Add(new LookupParameter<PercentValue>("ChangeSymbolProbability")); 41 47 } 42 48 public override IDeepCloneable Clone(Cloner cloner) { … … 46 52 protected override VariableVector Create(IRandom random, VariableVector sampleVariableVector, double spreadPercentage) { 47 53 var result = sampleVariableVector.GetEmptyCopy(); 48 result.Randomize(random, spreadPercentage);54 result.Randomize(random, ChangeSymbolProbabilityParameter.ActualValue.Value, spreadPercentage); 49 55 return result; 50 56 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/DoubleVariable.cs
r9392 r9467 112 112 } 113 113 114 // Important! If this mehtod is called instead of the more concrete "Randomize(IRandom random, double spreadPercentage)" 115 // spread percentage is 50% 116 public override void Randomize(IRandom random) { 117 Randomize(random, 50); 114 // this method is not implemented on purpose, because it may lead to confusion or errors if the wrong parameter would be used (changeSymbolProbability instead of spreadPercentage) 115 public override void Randomize(IRandom random, double changeSymbolProbability) { 116 throw new NotImplementedException("The method DoubleVariable.Randomize(IRandom, double) should not be used. Use DoubleVariable.Randomize(IRandom, double, double) instead."); 118 117 } 119 118 120 public void Randomize(IRandom random, double spreadPercentage) { 119 // changeSymbolProbability is not used on purpose 120 public void Randomize(IRandom random, double changeSymbolProbability, double spreadPercentage) { 121 121 if (spreadPercentage < 0 || spreadPercentage > 100) { 122 122 throw new ArgumentException("Spread percentage has to be between 0 and 100."); -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/IActionVariable.cs
r9226 r9467 21 21 22 22 using System.Collections.Generic; 23 using HeuristicLab.Core; 23 24 24 25 namespace HeuristicLab.Encodings.VariableVector { … … 30 31 void SetTo(string value); 31 32 IEnumerable<string> GetAllPossibleActions(); 33 34 void RandomizeAction(IRandom random); 32 35 } 33 36 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/IVariable.cs
r9242 r9467 33 33 IVariable GetSetCopy(); 34 34 35 void Randomize(IRandom random );35 void Randomize(IRandom random, double changeSymbolProbability); 36 36 bool MatchInput(string target); 37 37 bool MatchVariable(IVariable target); -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/IntVariable.cs
r9392 r9467 122 122 } 123 123 124 public override void Randomize(IRandom random) { 124 public void RandomizeAction(IRandom random) { 125 int index = random.Next(possibleFeatures.Count()); 126 currentValue = possibleFeatures.ElementAt(index); 127 } 128 129 public override void Randomize(IRandom random, double changeSymbolProbability) { 130 Wildcard = random.NextDouble() < changeSymbolProbability; 125 131 int index = random.Next(possibleFeatures.Count()); 126 132 currentValue = possibleFeatures.ElementAt(index); -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/StringVariable.cs
r9392 r9467 167 167 } 168 168 169 public override void Randomize(IRandom random) { 169 public void RandomizeAction(IRandom random) { 170 int index = random.Next(possibleFeatures.Count()); 171 currentValue = possibleFeatures.ElementAt(index); 172 } 173 174 public override void Randomize(IRandom random, double changeSymbolProbability) { 175 Wildcard = random.NextDouble() < changeSymbolProbability; 170 176 int index = random.Next(possibleFeatures.Count()); 171 177 currentValue = possibleFeatures.ElementAt(index); -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/Variable/Variable.cs
r9242 r9467 55 55 public abstract IVariable GetSetCopy(); 56 56 57 public abstract void Randomize(IRandom random );57 public abstract void Randomize(IRandom random, double changeSymbolProbability); 58 58 59 59 public virtual bool MatchVariable(IVariable target) { throw new NotSupportedException("This method is not supported by this kind of Variable."); } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/VariableVector.cs
r9242 r9467 86 86 } 87 87 88 public void Randomize(IRandom random, double spreadPercentage) {89 condition.Randomize(random, spreadPercentage);88 public void Randomize(IRandom random, double changeSymbolProbability, double spreadPercentage) { 89 condition.Randomize(random, changeSymbolProbability, spreadPercentage); 90 90 action.Randomize(random); 91 91 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/VariableVectorAction.cs
r9411 r9467 113 113 public void Randomize(IRandom random) { 114 114 foreach (var variable in VariableDictionary.Values) { 115 variable.Randomize (random);115 variable.RandomizeAction(random); 116 116 } 117 117 } -
branches/LearningClassifierSystems/HeuristicLab.Encodings.VariableVector/3.3/VariableVectorCondition.cs
r9392 r9467 97 97 } 98 98 99 public void Randomize(IRandom random, double spreadPercentage) {99 public void Randomize(IRandom random, double changeSymbolProbability, double spreadPercentage) { 100 100 foreach (var variable in VariableDictionary.Values) { 101 101 if (variable is DoubleVariable) { 102 ((DoubleVariable)variable).Randomize(random, spreadPercentage);102 ((DoubleVariable)variable).Randomize(random, changeSymbolProbability, spreadPercentage); 103 103 } else { 104 variable.Randomize(random );104 variable.Randomize(random, changeSymbolProbability); 105 105 } 106 106 } -
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3
- Property svn:ignore
-
old new 1 1 obj 2 2 Plugin.cs 3 *.user
-
- Property svn:ignore
-
branches/LearningClassifierSystems/HeuristicLab.Problems.ConditionActionClassification/3.3/ConditionActionClassificationProblem.cs
r9411 r9467 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.PluginInfrastructure; 31 32 using HeuristicLab.Problems.DataAnalysis; 32 33 using HeuristicLab.Problems.Instances; … … 42 43 private const string ActionExecuterParameterName = "ActionExecuter"; 43 44 private const string ActionSetSubsumptionOperatorParameterName = "ActionSetSubsumption"; 45 private const string MaximizationParameterName = "Maximization"; 44 46 45 47 public abstract string ChildName { get; } 48 49 public IFixedValueParameter<BoolValue> MaximizationParameter { 50 get { return (IFixedValueParameter<BoolValue>)Parameters[MaximizationParameterName]; } 51 } 52 IParameter IConditionActionProblem.MaximizationParameter { 53 get { return MaximizationParameter; } 54 } 46 55 47 56 IXCSEvaluator IConditionActionProblem.Evaluator { … … 149 158 public ConditionActionClassificationProblem(V problemData, XCSEvaluator evaluator, T solutionCreator, ICoveringSolutionCreator coveringSolutionCreator) 150 159 : base(evaluator, solutionCreator) { 160 Parameters.Add(new FixedValueParameter<BoolValue>(MaximizationParameterName, "Set to false if the problem should be minimized.", new BoolValue((true)))); 151 161 Parameters.Add(new ValueParameter<V>("ProblemData", "", problemData)); 152 162 Parameters.Add(new FixedValueParameter<DoubleValue>("PositiveReward", "", new DoubleValue(1000))); … … 207 217 Operators.Add(new BestTrainingXCSSolutionAnalyzer()); 208 218 Operators.Add(new CurrentXCSSolutionAnalyzer()); 219 Operators.AddRange(ApplicationManager.Manager.GetInstances<ISingleObjectiveSelector>().Where(x => !(x is IMultiObjectiveSelector)).OrderBy(x => x.Name)); 209 220 } 210 221 -
branches/LearningClassifierSystems/HeuristicLab.Problems.VariableVectorClassification/3.3/VariableVectorClassificationProblem.cs
r9411 r9467 95 95 96 96 SolutionCreator.VariableVectorParameter.ActualName = ChildName; 97 SolutionCreator.ChangeSymbolProbabilityParameter.ActualName = ChangeSymbolProbabilityInCoveringParameter.Name; 97 98 98 99 SetProblemDataSettings();
Note: See TracChangeset
for help on using the changeset viewer.