Changeset 9846 for branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/GpdlEditor.cs
- Timestamp:
- 08/05/13 11:37:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GPDL/HeuristicLab.Problems.GPDL.Views/3.4/GpdlEditor.cs
r9843 r9846 24 24 using System.Linq; 25 25 using System.Text; 26 using HeuristicLab.Algorithms.OffspringSelectionGeneticAlgorithm; 26 27 using HeuristicLab.MainForm.WindowsForms; 28 using HeuristicLab.Optimization; 27 29 using HeuristicLab.Problems.Instances; 28 30 using HeuristicLab.Problems.Instances.Views; … … 46 48 Parser parser = new Parser(scanner); 47 49 parser.Parse(); 48 MainForm.MainFormManager.MainForm.ShowContent(parser.problem); 50 51 // generate an OSGA to solve the problem 52 var osga = new OffspringSelectionGeneticAlgorithm(); 53 osga.Problem = parser.problem; 54 osga.Engine = new SequentialEngine.SequentialEngine(); 55 osga.PopulationSize.Value = 500; 56 osga.MutationProbability.Value = 0.15; 57 osga.ComparisonFactorUpperBound.Value = 1.0; 58 osga.ComparisonFactorLowerBound.Value = 1.0; 59 osga.MutatorParameter.Value = 60 osga.MutatorParameter.ValidValues.First(o => o.Name.Contains("MultiSymbolicExpressionTreeManipulator")); 61 osga.SelectorParameter.Value = 62 osga.SelectorParameter.ValidValues.First(o => o.Name.Contains("GenderSpecific")); 63 osga.MaximumSelectionPressure.Value = 500; 64 osga.MaximumGenerations.Value = 100; 65 MainForm.MainFormManager.MainForm.ShowContent(osga); 49 66 } 50 67
Note: See TracChangeset
for help on using the changeset viewer.