Changeset 11690 for branches/HeuristicLab.Problems.GrammaticalOptimization
- Timestamp:
- 12/16/14 21:51:40 (10 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization
- Property svn:ignore
-
old new 2 2 *.suo 3 3 TestResults 4 _ReSharper.GrammaticalOptimization
-
- Property svn:ignore
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.GrammaticalOptimization/HeuristicLab.Algorithms.GrammaticalOptimization.csproj
r11659 r11690 43 43 </ItemGroup> 44 44 <ItemGroup> 45 <Compile Include="ExhaustiveDepthFirstSearch.cs" /> 46 <Compile Include="ExhaustiveBreadthFirstSearch.cs" /> 45 47 <Compile Include="Properties\AssemblyInfo.cs" /> 46 48 <Compile Include="RandomSearch.cs" /> -
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.GrammaticalOptimization/RandomSearch.cs
r11659 r11690 1 1 using System; 2 using System; 2 3 using System.Collections.Generic; 3 4 using System.Linq; -
branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Program.cs
r11659 r11690 10 10 class Program { 11 11 static void Main(string[] args) { 12 int maxIterations = 100000 ;12 int maxIterations = 10000000; 13 13 int iterations = 0; 14 14 var sw = new Stopwatch(); … … 16 16 string bestSentence = ""; 17 17 18 var rs = new RandomSearch(100);18 var rs = new ExhaustiveDepthFirstSearch(17); 19 19 20 20 rs.FoundNewBestSolution += (sentence, quality) => { … … 25 25 rs.SolutionEvaluated += (sentence, quality) => { 26 26 iterations++; 27 if (iterations % 1000 == 0) {27 if (iterations % 10000 == 0) { 28 28 Console.WriteLine("{0,10} {1,10:F5} {2,10:F5} {3}", iterations, bestQuality, quality, sentence); 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.