Ignore:
Timestamp:
01/31/18 14:01:55 (4 years ago)
Author:
abeham
Message:

#1614: Added random search and fixed execution time counting for commercial solvers

Location:
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/RandomSearch
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/RandomSearch/RandomSearchContext.cs

    r15687 r15698  
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2626
    27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSearch {
    28   [Item("Local Search Context", "Context for local search algorithms.")]
     27namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.RandomSearch {
     28  [Item("Random Search Context", "Context for random search algorithms.")]
    2929  [StorableClass]
    30   public sealed class LocalSearchContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> {
     30  public sealed class RandomSearchContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> {
    3131    [Storable]
    3232    private IValueParameter<GQAP> problem;
     
    4444   
    4545    [StorableConstructor]
    46     private LocalSearchContext(bool deserializing) : base(deserializing) { }
    47     private LocalSearchContext(LocalSearchContext original, Cloner cloner)
     46    private RandomSearchContext(bool deserializing) : base(deserializing) { }
     47    private RandomSearchContext(RandomSearchContext original, Cloner cloner)
    4848    : base(original, cloner) {
    4949      problem = cloner.Clone(original.problem);
    5050      bestSolution = cloner.Clone(original.bestSolution);
    5151    }
    52     public LocalSearchContext() {
     52    public RandomSearchContext() {
    5353      Parameters.Add(problem = new ValueParameter<GQAP>("Problem"));
    5454      Parameters.Add(bestSolution = new ValueParameter<GQAPSolution>("BestFoundSolution"));
     
    5656
    5757    public override IDeepCloneable Clone(Cloner cloner) {
    58       return new LocalSearchContext(this, cloner);
     58      return new RandomSearchContext(this, cloner);
    5959    }
    6060
Note: See TracChangeset for help on using the changeset viewer.