- Timestamp:
- 01/09/17 00:36:20 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/Interfaces/Interfaces.cs
r14544 r14552 21 21 22 22 using System.Collections.Generic; 23 using System.Threading; 23 24 using HeuristicLab.Algorithms.MemPR.Binary; 24 25 using HeuristicLab.Algorithms.MemPR.Grouping; … … 63 64 64 65 public interface IHeuristicAlgorithmContext<TProblem, TSolution> : IExecutionContext 65 where TProblem : class, ISingleObjective ProblemDefinition{66 where TProblem : class, ISingleObjectiveHeuristicOptimizationProblem { 66 67 TProblem Problem { get; } 68 bool Maximization { get; } 67 69 IRandom Random { get; } 68 70 int Iterations { get; set; } … … 73 75 } 74 76 77 public interface IEvaluationServiceContext<TSolution> : IExecutionContext { 78 double Evaluate(TSolution solution, CancellationToken token); 79 void Evaluate(ISingleObjectiveSolutionScope<TSolution> scope, CancellationToken token); 80 } 81 75 82 public interface IPopulationBasedHeuristicAlgorithmContext<TProblem, TSolution> : IHeuristicAlgorithmContext<TProblem, TSolution> 76 where TProblem : class, ISingleObjective ProblemDefinition{83 where TProblem : class, ISingleObjectiveHeuristicOptimizationProblem { 77 84 IEnumerable<ISingleObjectiveSolutionScope<TSolution>> Population { get; } 78 85 } 79 86 80 87 public interface ISingleSolutionHeuristicAlgorithmContext<TProblem, TSolution> : IHeuristicAlgorithmContext<TProblem, TSolution> 81 where TProblem : class, ISingleObjective ProblemDefinition{88 where TProblem : class, ISingleObjectiveHeuristicOptimizationProblem { 82 89 ISingleObjectiveSolutionScope<TSolution> Solution { get; } 83 90 }
Note: See TracChangeset
for help on using the changeset viewer.