- Timestamp:
- 06/10/15 11:29:34 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.GrammaticalEvolution
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.GrammaticalEvolution
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/SymbolicExpressionTreeEncoding/HeuristicLab.Problems.GrammaticalEvolution merged eligible /stable/HeuristicLab.Problems.GrammaticalEvolution merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.Problems.GrammaticalEvolution 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.Problems.GrammaticalEvolution 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Problems.GrammaticalEvolution 6917-7005 /branches/CloningRefactoring/HeuristicLab.Problems.GrammaticalEvolution 4656-4721 /branches/CodeEditor/HeuristicLab.Problems.GrammaticalEvolution 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.Problems.GrammaticalEvolution 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Problems.GrammaticalEvolution 5815-6180 /branches/DataAnalysis/HeuristicLab.Problems.GrammaticalEvolution 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.Problems.GrammaticalEvolution 10085-11101 /branches/GP.Grammar.Editor/HeuristicLab.Problems.GrammaticalEvolution 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Problems.GrammaticalEvolution 5060 /branches/HLScript/HeuristicLab.Problems.GrammaticalEvolution 10331-10358 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.Problems.GrammaticalEvolution 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.Problems.GrammaticalEvolution 10202-10483 /branches/NET40/sources/HeuristicLab.Problems.GrammaticalEvolution 5138-5162 /branches/NSGA-II Changes/HeuristicLab.Problems.GrammaticalEvolution 12033-12122 /branches/ParallelEngine/HeuristicLab.Problems.GrammaticalEvolution 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.GrammaticalEvolution 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Problems.GrammaticalEvolution 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Problems.GrammaticalEvolution 6828 /branches/RuntimeOptimizer/HeuristicLab.Problems.GrammaticalEvolution 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.GrammaticalEvolution 7787-8333 /branches/SlaveShutdown/HeuristicLab.Problems.GrammaticalEvolution 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.Problems.GrammaticalEvolution 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.Problems.GrammaticalEvolution 5370-5682 /branches/Trunk/HeuristicLab.Problems.GrammaticalEvolution 6829-6865 /branches/UnloadJobs/HeuristicLab.Problems.GrammaticalEvolution 9168-9215 /branches/VNS/HeuristicLab.Problems.GrammaticalEvolution 5594-5752 /branches/histogram/HeuristicLab.Problems.GrammaticalEvolution 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/sources/HeuristicLab.Problems.GrammaticalEvolution/3.3/ArtificialAnt/GEArtificialAntEvaluator.cs
r12012 r12422 49 49 } 50 50 // phenotype: 51 public ILookupParameter< SymbolicExpressionTree> SymbolicExpressionTreeParameter {52 get { return (ILookupParameter< SymbolicExpressionTree>)Parameters["SymbolicExpressionTree"]; }51 public ILookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { 52 get { return (ILookupParameter<ISymbolicExpressionTree>)Parameters["SymbolicExpressionTree"]; } 53 53 } 54 54 public ILookupParameter<BoolMatrix> WorldParameter { … … 84 84 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality of the evaluated artificial ant solution.")); 85 85 Parameters.Add(new LookupParameter<IntegerVector>("IntegerVector", "The artificial ant solution encoded as an integer vector genome.")); 86 Parameters.Add(new LookupParameter< SymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solution encoded as a symbolic expression tree that should be evaluated"));86 Parameters.Add(new LookupParameter<ISymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solution encoded as a symbolic expression tree that should be evaluated")); 87 87 Parameters.Add(new LookupParameter<BoolMatrix>("World", "The world for the artificial ant with scattered food items.")); 88 88 Parameters.Add(new LookupParameter<IntValue>("MaxTimeSteps", "The maximal number of time steps that the artificial ant should be simulated.")); … … 93 93 Parameters.Add(new LookupParameter<IntMatrix>("Bounds", "The integer number range in which the single genomes of a genotype are created.")); 94 94 Parameters.Add(new LookupParameter<IntValue>("MaximumExpressionLength", "Maximal length of the expression to control the artificial ant (genotype length).")); 95 } 96 97 [StorableHook(HookType.AfterDeserialization)] 98 private void AfterDeserialization() { 99 // BackwardsCompatibility3.3 100 #region Backwards compatible code, remove with 3.4 101 102 if (Parameters.ContainsKey("SymbolicExpressionTree") && 103 Parameters["SymbolicExpressionTree"] is ILookupParameter<SymbolicExpressionTree>) { 104 Parameters.Remove("SymbolicExpressionTree"); 105 Parameters.Add(new LookupParameter<ISymbolicExpressionTree>("SymbolicExpressionTree", "The artificial ant solution encoded as a symbolic expression tree that should be evaluated")); 106 } 107 108 #endregion 109 95 110 } 96 111 -
trunk/sources/HeuristicLab.Problems.GrammaticalEvolution/3.3/Mappers/GenotypeToPhenotypeMapper.cs
r12012 r12422 31 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 32 using HeuristicLab.Problems.GrammaticalEvolution.Mappers; 33 using HeuristicLab.Random; 33 34 34 35 namespace HeuristicLab.Problems.GrammaticalEvolution { … … 68 69 if (!possibleSymbolsList.Any()) return null; 69 70 70 var newNode = possibleSymbolsList.S electRandom(random).CreateTreeNode();71 var newNode = possibleSymbolsList.SampleRandom(random).CreateTreeNode(); 71 72 if (newNode.HasLocalParameters) newNode.ResetLocalParameters(random); 72 73 return newNode; -
trunk/sources/HeuristicLab.Problems.GrammaticalEvolution/3.3/Mappers/RandomMapper.cs
r12012 r12422 29 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Random; 31 32 32 33 namespace HeuristicLab.Problems.GrammaticalEvolution { … … 102 103 } else { 103 104 // similar to PIGEMapper, but here the current node is determined randomly ... 104 ISymbolicExpressionTreeNode current = nonTerminals.S electRandom(random);105 ISymbolicExpressionTreeNode current = nonTerminals.SampleRandom(random); 105 106 nonTerminals.Remove(current); 106 107
Note: See TracChangeset
for help on using the changeset viewer.