Changeset 4068 for trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/StochasticSingleInsertionMoveGenerator.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Moves/ThreeOpt/StochasticSingleInsertionMoveGenerator.cs
r4046 r4068 21 21 22 22 using System; 23 using HeuristicLab.Common;23 using System.Collections.Generic; 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Data; … … 27 27 using HeuristicLab.Parameters; 28 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using System.Collections.Generic;30 29 31 30 namespace HeuristicLab.Encodings.PermutationEncoding { … … 57 56 HashSet<int> usedIndices = new HashSet<int>(); 58 57 while (count < sampleSize) { 59 58 60 59 int index = random.Next(length); 61 60 62 61 if (usedIndices.Count != length) 63 62 while (usedIndices.Contains(index))
Note: See TracChangeset
for help on using the changeset viewer.