Changeset 16751 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces
- Timestamp:
- 04/03/19 15:37:38 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces
- Files:
-
- 12 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IEncodedSolution.cs
r16750 r16751 22 22 #endregion 23 23 24 using System;25 using System.Collections.Generic;26 using System.Linq;27 using System.Text;28 using System.Threading.Tasks;29 24 using HeuristicLab.Core; 30 25 31 26 namespace HeuristicLab.Optimization { 32 public interface I Solution : IItem { }27 public interface IEncodedSolution : IItem { } 33 28 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IEncoding.cs
r16723 r16751 22 22 using System; 23 23 using System.Collections.Generic; 24 using HEAL.Attic; 24 25 using HeuristicLab.Core; 25 using HEAL.Attic;26 26 27 27 namespace HeuristicLab.Optimization { … … 40 40 } 41 41 42 public interface IEncoding<T Solution> : IEncoding43 where T Solution : class, ISolution {44 //new ISolutionCreator<T Solution> SolutionCreator { get; }42 public interface IEncoding<TEncodedSolution> : IEncoding 43 where TEncodedSolution : class, IEncodedSolution { 44 //new ISolutionCreator<TEncodedSolution> SolutionCreator { get; } 45 45 } 46 46 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IEncodingOperator.cs
r16723 r16751 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Core; 23 using HEAL.Attic;24 24 25 25 namespace HeuristicLab.Optimization { 26 26 [StorableType("20faaf8b-dd4f-4f0e-a772-4c4dec7fcccb")] 27 public interface IEncodingOperator<T Solution> : IOperator where TSolution : class, ISolution {28 ILookupParameter<IEncoding<T Solution>> EncodingParameter { get; }27 public interface IEncodingOperator<TEncodedSolution> : IOperator where TEncodedSolution : class, IEncodedSolution { 28 ILookupParameter<IEncoding<TEncodedSolution>> EncodingParameter { get; } 29 29 } 30 30 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IMultiObjectiveProblem.cs
r13362 r16751 23 23 24 24 namespace HeuristicLab.Optimization { 25 public interface IMultiObjectiveProblem<TEncoding, T Solution> : IProblem<TEncoding, TSolution>, IMultiObjectiveHeuristicOptimizationProblem26 where TEncoding : class, IEncoding<T Solution>27 where T Solution : class, ISolution {25 public interface IMultiObjectiveProblem<TEncoding, TEncodedSolution> : IProblem<TEncoding, TEncodedSolution>, IMultiObjectiveHeuristicOptimizationProblem 26 where TEncoding : class, IEncoding<TEncodedSolution> 27 where TEncodedSolution : class, IEncodedSolution { 28 28 29 29 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IMultiObjectiveProblemDefinition.cs
r16723 r16751 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Core; 23 using HEAL.Attic;24 24 25 25 namespace HeuristicLab.Optimization { 26 26 [StorableType("39eacdb5-80a0-425d-902a-00eb3e1d6610")] 27 public interface IMultiObjectiveProblemDefinition<TEncoding, T Solution> : IProblemDefinition<TEncoding, TSolution>28 where TEncoding : class, IEncoding<T Solution>29 where T Solution : class, ISolution {27 public interface IMultiObjectiveProblemDefinition<TEncoding, TEncodedSolution> : IProblemDefinition<TEncoding, TEncodedSolution> 28 where TEncoding : class, IEncoding<TEncodedSolution> 29 where TEncodedSolution : class, IEncodedSolution { 30 30 bool[] Maximization { get; } 31 double[] Evaluate(T Solution individual, IRandom random);32 void Analyze(T Solution[] individuals, double[][] qualities, ResultCollection results, IRandom random);31 double[] Evaluate(TEncodedSolution individual, IRandom random); 32 void Analyze(TEncodedSolution[] individuals, double[][] qualities, ResultCollection results, IRandom random); 33 33 } 34 34 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IProblemDefinition.cs
r16723 r16751 24 24 namespace HeuristicLab.Optimization { 25 25 [StorableType("747a3cea-b9ba-4322-a5c2-050cd7e16e2a")] 26 public interface IProblemDefinition<TEncoding, T Solution>27 where TEncoding : class, IEncoding<T Solution>28 where T Solution : class, ISolution {26 public interface IProblemDefinition<TEncoding, TEncodedSolution> 27 where TEncoding : class, IEncoding<TEncodedSolution> 28 where TEncodedSolution : class, IEncodedSolution { 29 29 TEncoding Encoding { get; } 30 30 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/ISingleObjectiveProblem.cs
r13361 r16751 24 24 25 25 namespace HeuristicLab.Optimization { 26 public interface ISingleObjectiveProblem<TEncoding, T Solution> : IProblem<TEncoding, TSolution>, ISingleObjectiveHeuristicOptimizationProblem27 where TEncoding : class, IEncoding<T Solution>28 where T Solution : class, ISolution {26 public interface ISingleObjectiveProblem<TEncoding, TEncodedSolution> : IProblem<TEncoding, TEncodedSolution>, ISingleObjectiveHeuristicOptimizationProblem 27 where TEncoding : class, IEncoding<TEncodedSolution> 28 where TEncodedSolution : class, IEncodedSolution { 29 29 30 30 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/ISingleObjectiveProblemDefinition.cs
r16723 r16751 21 21 22 22 using System.Collections.Generic; 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 using HEAL.Attic;25 25 26 26 namespace HeuristicLab.Optimization { 27 27 [StorableType("7ec7bf7e-aaa7-4681-828b-3401cf67e2b3")] 28 public interface ISingleObjectiveProblemDefinition<TEncoding, T Solution> : IProblemDefinition<TEncoding, TSolution>29 where TEncoding : class, IEncoding<T Solution>30 where T Solution : class, ISolution {28 public interface ISingleObjectiveProblemDefinition<TEncoding, TEncodedSolution> : IProblemDefinition<TEncoding, TEncodedSolution> 29 where TEncoding : class, IEncoding<TEncodedSolution> 30 where TEncodedSolution : class, IEncodedSolution { 31 31 bool Maximization { get; } 32 double Evaluate(T Solution solution, IRandom random);33 void Analyze(T Solution[] solutions, double[] qualities, ResultCollection results, IRandom random);34 IEnumerable<T Solution> GetNeighbors(TSolution solution, IRandom random);32 double Evaluate(TEncodedSolution solution, IRandom random); 33 void Analyze(TEncodedSolution[] solutions, double[] qualities, ResultCollection results, IRandom random); 34 IEnumerable<TEncodedSolution> GetNeighbors(TEncodedSolution solution, IRandom random); 35 35 bool IsBetter(double quality, double bestQuality); 36 36 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/IMultiObjectiveAnalysisOperator.cs
r16723 r16751 21 21 22 22 using System; 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 using HEAL.Attic;25 25 26 26 namespace HeuristicLab.Optimization { 27 27 [StorableType("c9325602-3262-48a4-8985-03657fb0b34f")] 28 internal interface IMultiObjectiveAnalysisOperator<T Solution> : IEncodingOperator<TSolution>, IAnalyzer, IMultiObjectiveOperator29 where T Solution : class, ISolution {30 Action<T Solution[], double[][], ResultCollection, IRandom> AnalyzeAction { get; set; }28 internal interface IMultiObjectiveAnalysisOperator<TEncodedSolution> : IEncodingOperator<TEncodedSolution>, IAnalyzer, IMultiObjectiveOperator 29 where TEncodedSolution : class, IEncodedSolution { 30 Action<TEncodedSolution[], double[][], ResultCollection, IRandom> AnalyzeAction { get; set; } 31 31 } 32 32 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/IMultiObjectiveEvaluationOperator.cs
r16723 r16751 21 21 22 22 using System; 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 using HEAL.Attic;25 25 26 26 namespace HeuristicLab.Optimization { 27 27 [StorableType("89da568c-70a2-48fb-8e6b-ea078bb6fc3f")] 28 internal interface IMultiObjectiveEvaluationOperator<T Solution> : IMultiObjectiveEvaluator, IEncodingOperator<TSolution>29 where T Solution : class, ISolution {30 Func<T Solution, IRandom, double[]> EvaluateFunc { get; set; }28 internal interface IMultiObjectiveEvaluationOperator<TEncodedSolution> : IMultiObjectiveEvaluator, IEncodingOperator<TEncodedSolution> 29 where TEncodedSolution : class, IEncodedSolution { 30 Func<TEncodedSolution, IRandom, double[]> EvaluateFunc { get; set; } 31 31 } 32 32 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/INeighborBasedOperator.cs
r16723 r16751 22 22 using System; 23 23 using System.Collections.Generic; 24 using HEAL.Attic; 24 25 using HeuristicLab.Core; 25 using HEAL.Attic;26 26 27 27 namespace HeuristicLab.Optimization { 28 28 [StorableType("fda56e0b-9392-4711-9af1-55211bfa24ac")] 29 internal interface INeighborBasedOperator<T Solution> : IEncodingOperator<TSolution>30 where T Solution : class, ISolution {31 Func<T Solution, IRandom, IEnumerable<TSolution>> GetNeighborsFunc { get; set; }29 internal interface INeighborBasedOperator<TEncodedSolution> : IEncodingOperator<TEncodedSolution> 30 where TEncodedSolution : class, IEncodedSolution { 31 Func<TEncodedSolution, IRandom, IEnumerable<TEncodedSolution>> GetNeighborsFunc { get; set; } 32 32 } 33 33 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/ISingleObjectiveAnalysisOperator.cs
r16723 r16751 26 26 namespace HeuristicLab.Optimization { 27 27 [StorableType("9731981c-10c6-4850-9308-a4720ac07da7")] 28 internal interface ISingleObjectiveAnalysisOperator<T Solution> : IEncodingOperator<TSolution>, ISingleObjectiveOperator29 where T Solution : class, ISolution {30 Action<T Solution[], double[], ResultCollection, IRandom> AnalyzeAction { get; set; }28 internal interface ISingleObjectiveAnalysisOperator<TEncodedSolution> : IEncodingOperator<TEncodedSolution>, ISingleObjectiveOperator 29 where TEncodedSolution : class, IEncodedSolution { 30 Action<TEncodedSolution[], double[], ResultCollection, IRandom> AnalyzeAction { get; set; } 31 31 } 32 32 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/ISingleObjectiveEvaluationOperator.cs
r16723 r16751 26 26 namespace HeuristicLab.Optimization { 27 27 [StorableType("5a9cf334-4815-4f0e-a2f8-f3d4edfcc829")] 28 internal interface ISingleObjectiveEvaluationOperator<T Solution> : ISingleObjectiveEvaluator, IEncodingOperator<TSolution>29 where T Solution : class, ISolution {30 Func<T Solution, IRandom, double> EvaluateFunc { get; set; }28 internal interface ISingleObjectiveEvaluationOperator<TEncodedSolution> : ISingleObjectiveEvaluator, IEncodingOperator<TEncodedSolution> 29 where TEncodedSolution : class, IEncodedSolution { 30 Func<TEncodedSolution, IRandom, double> EvaluateFunc { get; set; } 31 31 } 32 32 }
Note: See TracChangeset
for help on using the changeset viewer.