Changeset 15257
- Timestamp:
- 07/16/17 09:43:05 (7 years ago)
- Location:
- stable
- Files:
-
- 7 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15235,15246-15247
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm/3.3/OffspringSelectionGeneticAlgorithm.cs
r15238 r15257 55 55 56 56 #region Parameter Properties 57 p rivateValueParameter<IntValue> SeedParameter {57 public IValueParameter<IntValue> SeedParameter { 58 58 get { return (ValueParameter<IntValue>)Parameters["Seed"]; } 59 59 } 60 p rivateValueParameter<BoolValue> SetSeedRandomlyParameter {60 public IValueParameter<BoolValue> SetSeedRandomlyParameter { 61 61 get { return (ValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; } 62 62 } 63 p rivateValueParameter<IntValue> PopulationSizeParameter {63 public IValueParameter<IntValue> PopulationSizeParameter { 64 64 get { return (ValueParameter<IntValue>)Parameters["PopulationSize"]; } 65 65 } … … 70 70 get { return (IConstrainedValueParameter<ICrossover>)Parameters["Crossover"]; } 71 71 } 72 p rivateValueParameter<PercentValue> MutationProbabilityParameter {72 public IValueParameter<PercentValue> MutationProbabilityParameter { 73 73 get { return (ValueParameter<PercentValue>)Parameters["MutationProbability"]; } 74 74 } … … 76 76 get { return (IConstrainedValueParameter<IManipulator>)Parameters["Mutator"]; } 77 77 } 78 p rivateValueParameter<IntValue> ElitesParameter {78 public IValueParameter<IntValue> ElitesParameter { 79 79 get { return (ValueParameter<IntValue>)Parameters["Elites"]; } 80 80 } 81 p rivateIFixedValueParameter<BoolValue> ReevaluateElitesParameter {81 public IFixedValueParameter<BoolValue> ReevaluateElitesParameter { 82 82 get { return (IFixedValueParameter<BoolValue>)Parameters["ReevaluateElites"]; } 83 83 } 84 p rivateValueParameter<IntValue> MaximumGenerationsParameter {84 public IValueParameter<IntValue> MaximumGenerationsParameter { 85 85 get { return (ValueParameter<IntValue>)Parameters["MaximumGenerations"]; } 86 86 } 87 p rivateValueLookupParameter<DoubleValue> SuccessRatioParameter {87 public IValueLookupParameter<DoubleValue> SuccessRatioParameter { 88 88 get { return (ValueLookupParameter<DoubleValue>)Parameters["SuccessRatio"]; } 89 89 } 90 p rivateValueLookupParameter<DoubleValue> ComparisonFactorLowerBoundParameter {90 public IValueLookupParameter<DoubleValue> ComparisonFactorLowerBoundParameter { 91 91 get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorLowerBound"]; } 92 92 } 93 p rivateValueLookupParameter<DoubleValue> ComparisonFactorUpperBoundParameter {93 public IValueLookupParameter<DoubleValue> ComparisonFactorUpperBoundParameter { 94 94 get { return (ValueLookupParameter<DoubleValue>)Parameters["ComparisonFactorUpperBound"]; } 95 95 } … … 97 97 get { return (IConstrainedValueParameter<IDiscreteDoubleValueModifier>)Parameters["ComparisonFactorModifier"]; } 98 98 } 99 p rivateValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter {99 public IValueLookupParameter<DoubleValue> MaximumSelectionPressureParameter { 100 100 get { return (ValueLookupParameter<DoubleValue>)Parameters["MaximumSelectionPressure"]; } 101 101 } 102 p rivateValueLookupParameter<BoolValue> OffspringSelectionBeforeMutationParameter {102 public IValueLookupParameter<BoolValue> OffspringSelectionBeforeMutationParameter { 103 103 get { return (ValueLookupParameter<BoolValue>)Parameters["OffspringSelectionBeforeMutation"]; } 104 104 } 105 p rivateValueLookupParameter<IntValue> SelectedParentsParameter {105 public IValueLookupParameter<IntValue> SelectedParentsParameter { 106 106 get { return (ValueLookupParameter<IntValue>)Parameters["SelectedParents"]; } 107 107 } 108 p rivateValueParameter<MultiAnalyzer> AnalyzerParameter {108 public IValueParameter<MultiAnalyzer> AnalyzerParameter { 109 109 get { return (ValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } 110 110 } 111 p rivateValueParameter<IntValue> MaximumEvaluatedSolutionsParameter {111 public IValueParameter<IntValue> MaximumEvaluatedSolutionsParameter { 112 112 get { return (ValueParameter<IntValue>)Parameters["MaximumEvaluatedSolutions"]; } 113 113 } 114 p rivateIFixedValueParameter<BoolValue> FillPopulationWithParentsParameter {114 public IFixedValueParameter<BoolValue> FillPopulationWithParentsParameter { 115 115 get { return (IFixedValueParameter<BoolValue>)Parameters["FillPopulationWithParents"]; } 116 116 } -
stable/HeuristicLab.Optimizer
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Optimizer merged: 15235,15247
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimizer/3.3/HeuristicLab.Optimizer-3.3.csproj
r15038 r15257 152 152 <EmbeddedResource Include="Documents\OSES_Griewank.hl" /> 153 153 <EmbeddedResource Include="Documents\SGP_Robocode.hl" /> 154 <EmbeddedResource Include="Documents\OSGP_SymReg.hl" /> 154 155 <None Include="Plugin.cs.frame" /> 155 156 <Compile Include="ChangeNestingLevelDialog.cs"> -
stable/HeuristicLab.Optimizer/3.3/StartPage.cs
r14211 r15257 138 138 }; 139 139 groupLookup[standardProblemsGroup] = standardProblems; 140 var dataAnalysisProblems = new List<string> { "ALPSGP_SymReg", "SGP_SymbClass", "SGP_SymbReg", "OSGP_TimeSeries", "GE_SymbReg", "GPR" };140 var dataAnalysisProblems = new List<string> { "ALPSGP_SymReg", "SGP_SymbClass", "SGP_SymbReg","OSGP_SymReg", "OSGP_TimeSeries", "GE_SymbReg", "GPR" }; 141 141 groupLookup[dataAnalysisGroup] = dataAnalysisProblems; 142 142 var scripts = new List<string> { "GA_QAP_Script", "GUI_Automation_Script", "OSGA_Rastrigin_Script", -
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests merged: 15235,15246-15247
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPSymbolicRegressionSampleWithOSTest.cs
r15235 r15257 61 61 62 62 if (Environment.Is64BitProcess) { 63 Assert.AreEqual(0.99174959007940156, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8, Environment.NewLine + "Best Qualitiy differs."); 64 Assert.AreEqual(0.9836083751914968, SamplesUtils.GetDoubleResult(osga, "CurrentAverageQuality"), 1E-8, Environment.NewLine + "Current Average Quality differs."); 65 Assert.AreEqual(0.98298394717065463, SamplesUtils.GetDoubleResult(osga, "CurrentWorstQuality"), 1E-8, Environment.NewLine + "Current Worst Quality differs."); 66 Assert.AreEqual(10100, SamplesUtils.GetIntResult(osga, "EvaluatedSolutions"), Environment.NewLine + "Evaluated Solutions differ."); 67 Assert.AreEqual(0.99174959007940156, bestTrainingSolution.TrainingRSquared, 1E-8, Environment.NewLine + "Best Training Solution Training R² differs."); 68 Assert.AreEqual(0.896290231994223, bestTrainingSolution.TestRSquared, 1E-8, Environment.NewLine + "Best Training Solution Test R² differs."); 63 // the following are the result values as produced on builder.heuristiclab.com 64 // Unfortunately, running the same test on a different machine results in different values 65 // For x86 environments the results below match but on x64 there is a difference 66 // We tracked down the ConstantOptimizationEvaluator as a possible cause but have not 67 // been able to identify the real cause. Presumably, execution on a Xeon and a Core i7 processor 68 // leads to different results. 69 Assert.AreEqual(0.90811178793448177, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8, Environment.NewLine + "Best Qualitiy differs."); 70 Assert.AreEqual(0.87264498853305739, SamplesUtils.GetDoubleResult(osga, "CurrentAverageQuality"), 1E-8, Environment.NewLine + "Current Average Quality differs."); 71 Assert.AreEqual(0.75425658608938817, SamplesUtils.GetDoubleResult(osga, "CurrentWorstQuality"), 1E-8, Environment.NewLine + "Current Worst Quality differs."); 72 Assert.AreEqual(8900, SamplesUtils.GetIntResult(osga, "EvaluatedSolutions"), Environment.NewLine + "Evaluated Solutions differ."); 73 Assert.AreEqual(0.90811178793448177, bestTrainingSolution.TrainingRSquared, 1E-8, Environment.NewLine + "Best Training Solution Training R² differs."); 74 // Assert.AreEqual(0.896290231994223, bestTrainingSolution.TestRSquared, 1E-8, Environment.NewLine + "Best Training Solution Test R² differs."); 69 75 } else { 70 76 Assert.AreEqual(0.9971536312165723, SamplesUtils.GetDoubleResult(osga, "BestQuality"), 1E-8, Environment.NewLine + "Best Qualitiy differs."); … … 175 181 evaluator.ConstantOptimizationIterations.Value = 5; 176 182 problem.EvaluatorParameter.Value = evaluator; 183 problem.RelativeNumberOfEvaluatedSamplesParameter.Hidden = true; 184 problem.SolutionCreatorParameter.Hidden = true; 177 185 #endregion 178 186 … … 201 209 osga.SuccessRatioParameter.Hidden = true; 202 210 osga.SelectedParentsParameter.Hidden = true; 211 osga.ElitesParameter.Hidden = true; 203 212 204 213 #endregion -
stable/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r15217 r15257 460 460 <Compile Include="HeuristicLab-3.3\Samples\GABppSampleTest.cs" /> 461 461 <Compile Include="HeuristicLab-3.3\Samples\GPRobocodeSampleTest.cs" /> 462 <Compile Include="HeuristicLab-3.3\Samples\GPSymbolicRegressionSampleWithOSTest.cs" /> 462 463 <Compile Include="HeuristicLab-3.3\Samples\OSESGriewankSampleTest.cs" /> 463 464 <Compile Include="HeuristicLab-3.3\Samples\GAGroupingProblemSampleTest.cs" />
Note: See TracChangeset
for help on using the changeset viewer.