Changeset 13404 for branches/ProblemRefactoring/HeuristicLab.Optimization
- Timestamp:
- 11/26/15 09:30:43 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/ISingleObjectiveProblemDefinition.cs
r13361 r13404 28 28 where TSolution : class, ISolution { 29 29 bool Maximization { get; } 30 double Evaluate(TSolution individual, IRandom random);31 void Analyze(TSolution[] individuals, double[] qualities, ResultCollection results, IRandom random);32 IEnumerable<TSolution> GetNeighbors(TSolution individual, IRandom random);30 double Evaluate(TSolution solution, IRandom random); 31 void Analyze(TSolution[] solutions, double[] qualities, ResultCollection results, IRandom random); 32 IEnumerable<TSolution> GetNeighbors(TSolution solution, IRandom random); 33 33 bool IsBetter(double quality, double bestQuality); 34 34 } -
branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs
r13396 r13404 100 100 101 101 public abstract bool Maximization { get; } 102 public abstract double Evaluate(TSolution individual, IRandom random);103 public virtual void Analyze(TSolution[] individuals, double[] qualities, ResultCollection results, IRandom random) { }104 public virtual IEnumerable<TSolution> GetNeighbors(TSolution individual, IRandom random) {102 public abstract double Evaluate(TSolution solution, IRandom random); 103 public virtual void Analyze(TSolution[] solutions, double[] qualities, ResultCollection results, IRandom random) { } 104 public virtual IEnumerable<TSolution> GetNeighbors(TSolution solution, IRandom random) { 105 105 return Enumerable.Empty<TSolution>(); 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.