Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/24/17 09:31:29 (7 years ago)
Author:
jkarder
Message:

#2205: worked on optimization networks

  • created separate project for ttp optimization
  • removed some unused classes
Location:
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpOrchestratorNode1.cs

    r14600 r14601  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2017 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223using System.Collections.Generic;
    324using System.Linq;
     
    1738using HeuristicLab.Problems.TravelingSalesman;
    1839
    19 namespace HeuristicLab.Networks.IntegratedOptimization {
    20   [Item("TtpOrchestratorNode5", "An abstract base class for an orchestrator node for the TTP.")]
     40namespace HeuristicLab.Networks.IntegratedOptimization.TravelingThief {
     41  [Item("TtpOrchestratorNode1", "Orchestrator for TTP optimization network version 1.")]
    2142  [StorableClass]
    22   public sealed class TtpOrchestratorNode5 : OrchestratorNode {
     43  public sealed class TtpOrchestratorNode1 : OrchestratorNode {
    2344    #region Constants
    2445    private const string TspParameterName = "TSP";
     
    3455    #endregion
    3556
    36     [Storable]
    3757    private ResultCollection tspResults, kspResults;
    3858
     
    96116
    97117    [StorableConstructor]
    98     private TtpOrchestratorNode5(bool deserializing) : base(deserializing) { }
    99     private TtpOrchestratorNode5(TtpOrchestratorNode5 original, Cloner cloner) : base(original, cloner) {
     118    private TtpOrchestratorNode1(bool deserializing) : base(deserializing) { }
     119    private TtpOrchestratorNode1(TtpOrchestratorNode1 original, Cloner cloner) : base(original, cloner) {
    100120      RegisterEvents();
    101121    }
    102     public TtpOrchestratorNode5() : this("TtpOrchestratorNode5") { }
    103     public TtpOrchestratorNode5(string name) : base(name) {
     122    public TtpOrchestratorNode1() : this("TtpOrchestratorNode1") { }
     123    public TtpOrchestratorNode1(string name) : base(name) {
    104124      #region Configure Parameters
    105125      Parameters.Add(new ValueParameter<IntValue>(IterationsParameterName, new IntValue(20)));
     
    125145
    126146    public override IDeepCloneable Clone(Cloner cloner) {
    127       return new TtpOrchestratorNode5(this, cloner);
     147      return new TtpOrchestratorNode1(this, cloner);
    128148    }
    129149
     
    230250      var bestKspQuality = KnapsackEvaluator.Apply(bestKspSolution, kspCapacity, kspPenalty, kspWeights, kspValues).Quality;
    231251      var loot = new KnapsackSolution(bestKspSolution, bestKspQuality, kspCapacity, kspWeights, kspValues);
    232       kspResults.Add(new Result("Best KSP Solution", loot));
    233252
    234253      var tspMsg = TspSolverOrchestrationPort.PrepareMessage();
Note: See TracChangeset for help on using the changeset viewer.