Changeset 17669
- Timestamp:
- 07/16/20 08:42:17 (4 years ago)
- Location:
- branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/NSGA3.cs
r17668 r17669 68 68 69 69 private const string SeedName = "Seed"; 70 private const string SetSeedRandomlyName = "Set SeedRandomly";71 private const string PopulationSizeName = "Population Size";72 private const string CrossoverProbabilityName = "Crossover Probability";73 private const string CrossoverContiguityName = "Crossover Contiguity";74 private const string MutationProbabilityName = "Mutation Probability";75 private const string MaximumGenerationsName = "Maximum Generations";76 private const string DominateOnEqualQualitiesName = "Dominate OnEqualQualities";70 private const string SetSeedRandomlyName = "Set Seed Randomly"; 71 private const string PopulationSizeName = "Population Size"; 72 private const string CrossoverProbabilityName = "Crossover Probability"; 73 private const string CrossoverContiguityName = "Crossover Contiguity"; 74 private const string MutationProbabilityName = "Mutation Probability"; 75 private const string MaximumGenerationsName = "Maximum Generations"; 76 private const string DominateOnEqualQualitiesName = "Dominate On Equal Qualities"; 77 77 78 78 // Results Names … … 80 80 private const string GeneratedReferencePointsResultName = "Generated Reference Points"; 81 81 private const string CurrentGenerationResultName = "Generations"; 82 private const string ScatterPlotResultName = "Scatter Plot"; 82 83 private const string CurrentFrontResultName = "Pareto Front"; // Do not touch this 83 84 … … 173 174 get { return (IntValue)Results[CurrentGenerationResultName].Value; } 174 175 set { Results[CurrentGenerationResultName].Value = value; } 176 } 177 178 public ParetoFrontScatterPlot ResultsScatterPlot 179 { 180 get { return (ParetoFrontScatterPlot)Results[ScatterPlotResultName].Value; } 181 set { Results[ScatterPlotResultName].Value = value; } 175 182 } 176 183 … … 262 269 Results.Add(new Result(CurrentFrontResultName, "The Pareto Front", new DoubleMatrix())); 263 270 Results.Add(new Result(CurrentGenerationResultName, "The current generation", new IntValue(1))); 271 Results.Add(new Result(ScatterPlotResultName, "A scatterplot displaying the evaluated solutions and (if available) the analytically optimal front", new ParetoFrontScatterPlot())); 272 273 var problem = Problem as MultiObjectiveTestFunctionProblem; 274 if (problem == null) return; 275 // todo: add BestKnownFront parameter 276 ResultsScatterPlot = new ParetoFrontScatterPlot(new double[0][], new double[0][], null, problem.Objectives, problem.ProblemSize); 264 277 } 265 278 … … 283 296 284 297 ResultsCurrentGeneration.Value++; 298 Analyze(); 285 299 } 286 300 catch (Exception ex) … … 308 322 private void Analyze() 309 323 { 324 ResultsScatterPlot = new ParetoFrontScatterPlot(solutions.Select(x => x.Fitness).ToArray(), solutions.Select(x => x.Chromosome.ToArray()).ToArray(), ResultsScatterPlot.ParetoFront, ResultsScatterPlot.Objectives, ResultsScatterPlot.ProblemSize); 310 325 ResultsSolutions = solutions.Select(s => s.Chromosome.ToArray()).ToMatrix(); 311 326 Problem.Analyze( -
branches/2825-NSGA3/HeuristicLab.Algorithms.NSGA3/3.3/ReferencePoint.cs
r17668 r17669 80 80 } 81 81 82 int nRefPoints = GetNumberOfGeneratedReferencePoints(nDim, outerDiv, innerDiv); 83 return nRefPoints; 84 //return GetNumberOfGeneratedReferencePoints(nDim, outerDiv, innerDiv); 82 return GetNumberOfGeneratedReferencePoints(nDim, outerDiv, innerDiv); 85 83 } 86 84
Note: See TracChangeset
for help on using the changeset viewer.