Changeset 14666 for branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Permutation/SolutionModel
- Timestamp:
- 02/11/17 01:06:37 (8 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Permutation/SolutionModel/Univariate/UnivariateAbsoluteModel.cs
r14496 r14666 121 121 122 122 public static UnivariateAbsoluteModel CreateWithFitnessBias(IRandom random, bool maximization, IList<Encodings.PermutationEncoding.Permutation> population, IEnumerable<double> qualities, int N) { 123 var proportions = RandomEnumerable.PrepareProportional(qualities, true, !maximization);123 var proportions = Util.Auxiliary.PrepareProportional(qualities, true, !maximization); 124 124 var factor = 1.0 / proportions.Sum(); 125 125 var model = new double[N, N]; -
branches/PerformanceComparison/HeuristicLab.Algorithms.MemPR/3.3/Permutation/SolutionModel/Univariate/UnivariateRelativeModel.cs
r14496 r14666 126 126 127 127 public static UnivariateRelativeModel CreateDirectedWithFitnessBias(IRandom random, bool maximization, IList<Encodings.PermutationEncoding.Permutation> population, IEnumerable<double> qualities, int N) { 128 var proportions = RandomEnumerable.PrepareProportional(qualities, true, !maximization);128 var proportions = Util.Auxiliary.PrepareProportional(qualities, true, !maximization); 129 129 var factor = 1.0 / proportions.Sum(); 130 130 var model = new double[N, N]; … … 180 180 181 181 public static UnivariateRelativeModel CreateUndirectedWithFitnessBias(IRandom random, bool maximization, IList<Encodings.PermutationEncoding.Permutation> population, IEnumerable<double> qualities, int N) { 182 var proportions = RandomEnumerable.PrepareProportional(qualities, true, !maximization);182 var proportions = Util.Auxiliary.PrepareProportional(qualities, true, !maximization); 183 183 var factor = 1.0 / proportions.Sum(); 184 184 var model = new double[N, N];
Note: See TracChangeset
for help on using the changeset viewer.