Changeset 2864 for trunk/sources/HeuristicLab.SGA/3.3/SGA.cs
- Timestamp:
- 02/25/10 02:49:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SGA/3.3/SGA.cs
r2857 r2864 47 47 get { return (ISingleObjectiveProblem)base.Problem; } 48 48 set { base.Problem = value; } 49 }50 51 public new IScope GlobalScope {52 get { return base.GlobalScope; }53 49 } 54 50 … … 106 102 107 103 protected override void OnProblemChanged() { 108 if (Problem.SolutionCreator is IStochastic SolutionCreator) ((IStochasticSolutionCreator)Problem.SolutionCreator).RandomParameter.ActualName = "Random";104 if (Problem.SolutionCreator is IStochasticOperator) ((IStochasticOperator)Problem.SolutionCreator).RandomParameter.ActualName = "Random"; 109 105 populationCreator.SolutionCreatorParameter.Value = Problem.SolutionCreator; 110 106 populationCreator.SolutionEvaluatorParameter.Value = Problem.Evaluator; … … 115 111 } 116 112 protected override void Problem_SolutionCreatorChanged(object sender, EventArgs e) { 117 if (Problem.SolutionCreator is IStochastic SolutionCreator) ((IStochasticSolutionCreator)Problem.SolutionCreator).RandomParameter.ActualName = "Random";113 if (Problem.SolutionCreator is IStochasticOperator) ((IStochasticOperator)Problem.SolutionCreator).RandomParameter.ActualName = "Random"; 118 114 populationCreator.SolutionCreatorParameter.Value = Problem.SolutionCreator; 119 115 base.Problem_SolutionCreatorChanged(sender, e);
Note: See TracChangeset
for help on using the changeset viewer.