Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/17 22:11:10 (6 years ago)
Author:
abeham
Message:

#1614: refactored code

  • change problem to derive from basic problem
  • using a combined instance class instead of individual parameters
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/SolutionCreators/GQAPStochasticSolutionCreator.cs

    r7523 r15504  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2222using HeuristicLab.Common;
    2323using HeuristicLab.Core;
    24 using HeuristicLab.Data;
    2524using HeuristicLab.Encodings.IntegerVectorEncoding;
    2625using HeuristicLab.Optimization;
     
    4645    }
    4746
    48     protected sealed override IntegerVector CreateSolution(DoubleArray demands, DoubleArray capacities) {
    49       return CreateRandomSolution(RandomParameter.ActualValue, demands, capacities);
     47    protected sealed override IntegerVector CreateSolution(GQAPInstance problemInstance) {
     48      return CreateRandomSolution(RandomParameter.ActualValue, problemInstance);
    5049    }
    5150
    52     protected abstract IntegerVector CreateRandomSolution(IRandom random, DoubleArray demands, DoubleArray capacities);
     51    protected abstract IntegerVector CreateRandomSolution(IRandom random, GQAPInstance problemInstance);
    5352  }
    5453}
Note: See TracChangeset for help on using the changeset viewer.