Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/03/19 15:37:38 (6 years ago)
Author:
mkommend
Message:

#2521: Renamed Solution to EncodedSolution.

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  
    2222#endregion
    2323
    24 using System;
    25 using System.Collections.Generic;
    26 using System.Linq;
    27 using System.Text;
    28 using System.Threading.Tasks;
    2924using HeuristicLab.Core;
    3025
    3126namespace HeuristicLab.Optimization {
    32   public interface ISolution : IItem { }
     27  public interface IEncodedSolution : IItem { }
    3328}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IEncoding.cs

    r16723 r16751  
    2222using System;
    2323using System.Collections.Generic;
     24using HEAL.Attic;
    2425using HeuristicLab.Core;
    25 using HEAL.Attic;
    2626
    2727namespace HeuristicLab.Optimization {
     
    4040  }
    4141
    42   public interface IEncoding<TSolution> : IEncoding
    43     where TSolution : class, ISolution {
    44     //new ISolutionCreator<TSolution> SolutionCreator { get; }
     42  public interface IEncoding<TEncodedSolution> : IEncoding
     43    where TEncodedSolution : class, IEncodedSolution {
     44    //new ISolutionCreator<TEncodedSolution> SolutionCreator { get; }
    4545  }
    4646}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IEncodingOperator.cs

    r16723 r16751  
    2020#endregion
    2121
     22using HEAL.Attic;
    2223using HeuristicLab.Core;
    23 using HEAL.Attic;
    2424
    2525namespace HeuristicLab.Optimization {
    2626  [StorableType("20faaf8b-dd4f-4f0e-a772-4c4dec7fcccb")]
    27   public interface IEncodingOperator<TSolution> : IOperator where TSolution : class, ISolution {
    28     ILookupParameter<IEncoding<TSolution>> EncodingParameter { get; }
     27  public interface IEncodingOperator<TEncodedSolution> : IOperator where TEncodedSolution : class, IEncodedSolution {
     28    ILookupParameter<IEncoding<TEncodedSolution>> EncodingParameter { get; }
    2929  }
    3030}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IMultiObjectiveProblem.cs

    r13362 r16751  
    2323
    2424namespace HeuristicLab.Optimization {
    25   public interface IMultiObjectiveProblem<TEncoding, TSolution> : IProblem<TEncoding, TSolution>, IMultiObjectiveHeuristicOptimizationProblem
    26     where TEncoding : class, IEncoding<TSolution>
    27     where TSolution : class, ISolution {
     25  public interface IMultiObjectiveProblem<TEncoding, TEncodedSolution> : IProblem<TEncoding, TEncodedSolution>, IMultiObjectiveHeuristicOptimizationProblem
     26    where TEncoding : class, IEncoding<TEncodedSolution>
     27    where TEncodedSolution : class, IEncodedSolution {
    2828
    2929  }
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IMultiObjectiveProblemDefinition.cs

    r16723 r16751  
    2020#endregion
    2121
     22using HEAL.Attic;
    2223using HeuristicLab.Core;
    23 using HEAL.Attic;
    2424
    2525namespace HeuristicLab.Optimization {
    2626  [StorableType("39eacdb5-80a0-425d-902a-00eb3e1d6610")]
    27   public interface IMultiObjectiveProblemDefinition<TEncoding, TSolution> : IProblemDefinition<TEncoding, TSolution>
    28     where TEncoding : class, IEncoding<TSolution>
    29     where TSolution : class, ISolution {
     27  public interface IMultiObjectiveProblemDefinition<TEncoding, TEncodedSolution> : IProblemDefinition<TEncoding, TEncodedSolution>
     28    where TEncoding : class, IEncoding<TEncodedSolution>
     29    where TEncodedSolution : class, IEncodedSolution {
    3030    bool[] Maximization { get; }
    31     double[] Evaluate(TSolution individual, IRandom random);
    32     void Analyze(TSolution[] 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);
    3333  }
    3434}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/IProblemDefinition.cs

    r16723 r16751  
    2424namespace HeuristicLab.Optimization {
    2525  [StorableType("747a3cea-b9ba-4322-a5c2-050cd7e16e2a")]
    26   public interface IProblemDefinition<TEncoding, TSolution>
    27     where TEncoding : class, IEncoding<TSolution>
    28     where TSolution : class, ISolution {
     26  public interface IProblemDefinition<TEncoding, TEncodedSolution>
     27    where TEncoding : class, IEncoding<TEncodedSolution>
     28    where TEncodedSolution : class, IEncodedSolution {
    2929    TEncoding Encoding { get; }
    3030  }
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/ISingleObjectiveProblem.cs

    r13361 r16751  
    2424
    2525namespace HeuristicLab.Optimization {
    26   public interface ISingleObjectiveProblem<TEncoding, TSolution> : IProblem<TEncoding, TSolution>, ISingleObjectiveHeuristicOptimizationProblem
    27     where TEncoding : class, IEncoding<TSolution>
    28     where TSolution : class, ISolution {
     26  public interface ISingleObjectiveProblem<TEncoding, TEncodedSolution> : IProblem<TEncoding, TEncodedSolution>, ISingleObjectiveHeuristicOptimizationProblem
     27    where TEncoding : class, IEncoding<TEncodedSolution>
     28    where TEncodedSolution : class, IEncodedSolution {
    2929
    3030  }
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/ISingleObjectiveProblemDefinition.cs

    r16723 r16751  
    2121
    2222using System.Collections.Generic;
     23using HEAL.Attic;
    2324using HeuristicLab.Core;
    24 using HEAL.Attic;
    2525
    2626namespace HeuristicLab.Optimization {
    2727  [StorableType("7ec7bf7e-aaa7-4681-828b-3401cf67e2b3")]
    28   public interface ISingleObjectiveProblemDefinition<TEncoding, TSolution> : IProblemDefinition<TEncoding, TSolution>
    29     where TEncoding : class, IEncoding<TSolution>
    30     where TSolution : class, ISolution {
     28  public interface ISingleObjectiveProblemDefinition<TEncoding, TEncodedSolution> : IProblemDefinition<TEncoding, TEncodedSolution>
     29    where TEncoding : class, IEncoding<TEncodedSolution>
     30    where TEncodedSolution : class, IEncodedSolution {
    3131    bool Maximization { get; }
    32     double Evaluate(TSolution solution, IRandom random);
    33     void Analyze(TSolution[] solutions, double[] qualities, ResultCollection results, IRandom random);
    34     IEnumerable<TSolution> 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);
    3535    bool IsBetter(double quality, double bestQuality);
    3636  }
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/IMultiObjectiveAnalysisOperator.cs

    r16723 r16751  
    2121
    2222using System;
     23using HEAL.Attic;
    2324using HeuristicLab.Core;
    24 using HEAL.Attic;
    2525
    2626namespace HeuristicLab.Optimization {
    2727  [StorableType("c9325602-3262-48a4-8985-03657fb0b34f")]
    28   internal interface IMultiObjectiveAnalysisOperator<TSolution> : IEncodingOperator<TSolution>, IAnalyzer, IMultiObjectiveOperator
    29   where TSolution : class, ISolution {
    30     Action<TSolution[], 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; }
    3131  }
    3232}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/IMultiObjectiveEvaluationOperator.cs

    r16723 r16751  
    2121
    2222using System;
     23using HEAL.Attic;
    2324using HeuristicLab.Core;
    24 using HEAL.Attic;
    2525
    2626namespace HeuristicLab.Optimization {
    2727  [StorableType("89da568c-70a2-48fb-8e6b-ea078bb6fc3f")]
    28   internal interface IMultiObjectiveEvaluationOperator<TSolution> : IMultiObjectiveEvaluator, IEncodingOperator<TSolution>
    29   where TSolution : class, ISolution {
    30     Func<TSolution, 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; }
    3131  }
    3232}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/INeighborBasedOperator.cs

    r16723 r16751  
    2222using System;
    2323using System.Collections.Generic;
     24using HEAL.Attic;
    2425using HeuristicLab.Core;
    25 using HEAL.Attic;
    2626
    2727namespace HeuristicLab.Optimization {
    2828  [StorableType("fda56e0b-9392-4711-9af1-55211bfa24ac")]
    29   internal interface INeighborBasedOperator<TSolution> : IEncodingOperator<TSolution>
    30   where TSolution : class, ISolution {
    31     Func<TSolution, 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; }
    3232  }
    3333}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/ISingleObjectiveAnalysisOperator.cs

    r16723 r16751  
    2626namespace HeuristicLab.Optimization {
    2727  [StorableType("9731981c-10c6-4850-9308-a4720ac07da7")]
    28   internal interface ISingleObjectiveAnalysisOperator<TSolution> : IEncodingOperator<TSolution>, ISingleObjectiveOperator
    29   where TSolution : class, ISolution {
    30     Action<TSolution[], 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; }
    3131  }
    3232}
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Interfaces/internal/ISingleObjectiveEvaluationOperator.cs

    r16723 r16751  
    2626namespace HeuristicLab.Optimization {
    2727  [StorableType("5a9cf334-4815-4f0e-a2f8-f3d4edfcc829")]
    28   internal interface ISingleObjectiveEvaluationOperator<TSolution> : ISingleObjectiveEvaluator, IEncodingOperator<TSolution>
    29   where TSolution : class, ISolution {
    30     Func<TSolution, 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; }
    3131  }
    3232}
Note: See TracChangeset for help on using the changeset viewer.