Changeset 2857 for trunk/sources/HeuristicLab.SGA/3.3/SGA.cs
- Timestamp:
- 02/24/10 11:44:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SGA/3.3/SGA.cs
r2852 r2857 106 106 107 107 protected override void OnProblemChanged() { 108 Problem.SolutionCreator.RandomParameter.ActualName = "Random";108 if (Problem.SolutionCreator is IStochasticSolutionCreator) ((IStochasticSolutionCreator)Problem.SolutionCreator).RandomParameter.ActualName = "Random"; 109 109 populationCreator.SolutionCreatorParameter.Value = Problem.SolutionCreator; 110 110 populationCreator.SolutionEvaluatorParameter.Value = Problem.Evaluator; … … 115 115 } 116 116 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) { 117 Problem.SolutionCreator.RandomParameter.ActualName = "Random";117 if (Problem.SolutionCreator is IStochasticSolutionCreator) ((IStochasticSolutionCreator)Problem.SolutionCreator).RandomParameter.ActualName = "Random"; 118 118 populationCreator.SolutionCreatorParameter.Value = Problem.SolutionCreator; 119 119 base.Problem_SolutionCreatorChanged(sender, e);
Note: See TracChangeset
for help on using the changeset viewer.