Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/09/17 00:36:20 (8 years ago)
Author:
abeham
Message:

#2701:

  • Added alternating bits binary test Problem
  • Refactored MemPR to work with programmable problem in current trunk
  • fixed a bug in permutation MemPR when crossover doesn't assign an offspring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/Interfaces/Interfaces.cs

    r14544 r14552  
    2121 
    2222using System.Collections.Generic;
     23using System.Threading;
    2324using HeuristicLab.Algorithms.MemPR.Binary;
    2425using HeuristicLab.Algorithms.MemPR.Grouping;
     
    6364
    6465  public interface IHeuristicAlgorithmContext<TProblem, TSolution> : IExecutionContext
    65       where TProblem : class, ISingleObjectiveProblemDefinition {
     66      where TProblem : class, ISingleObjectiveHeuristicOptimizationProblem {
    6667    TProblem Problem { get; }
     68    bool Maximization { get; }
    6769    IRandom Random { get; }
    6870    int Iterations { get; set; }
     
    7375  }
    7476
     77  public interface IEvaluationServiceContext<TSolution> : IExecutionContext {
     78    double Evaluate(TSolution solution, CancellationToken token);
     79    void Evaluate(ISingleObjectiveSolutionScope<TSolution> scope, CancellationToken token);
     80  }
     81
    7582  public interface IPopulationBasedHeuristicAlgorithmContext<TProblem, TSolution> : IHeuristicAlgorithmContext<TProblem, TSolution>
    76       where TProblem : class, ISingleObjectiveProblemDefinition {
     83      where TProblem : class, ISingleObjectiveHeuristicOptimizationProblem {
    7784    IEnumerable<ISingleObjectiveSolutionScope<TSolution>> Population { get; }
    7885  }
    7986
    8087  public interface ISingleSolutionHeuristicAlgorithmContext<TProblem, TSolution> : IHeuristicAlgorithmContext<TProblem, TSolution>
    81       where TProblem : class, ISingleObjectiveProblemDefinition {
     88      where TProblem : class, ISingleObjectiveHeuristicOptimizationProblem {
    8289    ISingleObjectiveSolutionScope<TSolution> Solution { get; }
    8390  }
Note: See TracChangeset for help on using the changeset viewer.