Changeset 11598 for branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveGenerator.cs
- Timestamp:
- 11/27/14 20:02:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Operators/SingleObjectiveMoveGenerator.cs
r11559 r11598 73 73 var sampleSize = SampleSizeParameter.ActualValue.Value; 74 74 var encoding = EncodingParameter.ActualValue; 75 var vector = Helper.Extract(ExecutionContext.Scope, encoding);76 var nbhood = definition.GetNeighbors(random, vector).Take(sampleSize).ToList();75 var individual = encoding.CreateIndividual(ExecutionContext.Scope); 76 var nbhood = definition.GetNeighbors(random, individual).Take(sampleSize).ToList(); 77 77 78 78 var moveScopes = new Scope[nbhood.Count]; 79 79 for (int i = 0; i < moveScopes.Length; i++) { 80 80 moveScopes[i] = new Scope(i.ToString(CultureInfo.InvariantCulture.NumberFormat)); 81 Helper.Write(moveScopes[i], nbhood[i]);81 nbhood[i].Copy(moveScopes[i]); 82 82 } 83 83 ExecutionContext.Scope.SubScopes.AddRange(moveScopes);
Note: See TracChangeset
for help on using the changeset viewer.