Changeset 16728 for branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms
- Timestamp:
- 03/31/19 14:40:15 (6 years ago)
- Location:
- branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/CPLEX/CplexContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;25 25 26 26 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.CPLEX { 27 27 [Item("CPLEX Context", "A context for CPLEX solvers.")] 28 [Storable Class]28 [StorableType("9A91A380-A6C3-4294-80D7-163AA13D600B")] 29 29 public class CplexContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 30 30 31 31 [StorableConstructor] 32 protected CplexContext( bool deserializing) : base(deserializing) { }32 protected CplexContext(StorableConstructorFlag _) : base(_) { } 33 33 protected CplexContext(CplexContext original, Cloner cloner) 34 34 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/CPLEX/CplexSolver.cs
r15718 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 using ILOG.CPLEX; 31 31 using ILOG.OPL; … … 33 33 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.CPLEX { 34 34 [Item("CPLEX Solver (GQAP)", "Base class")] 35 [Storable Class]35 [StorableType("09AC71C5-20C7-4AC0-9E5A-405BA5075552")] 36 36 public abstract class CplexSolver : ContextAlgorithm<CplexContext, IntegerVectorEncoding> { 37 37 public override bool SupportsPause { … … 49 49 50 50 [StorableConstructor] 51 protected CplexSolver( bool deserializing) : base(deserializing) { }51 protected CplexSolver(StorableConstructorFlag _) : base(_) { } 52 52 protected CplexSolver(CplexSolver original, Cloner cloner) 53 53 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/CPLEX/GQAP-FY.cs
r15604 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;25 25 using ILOG.CPLEX; 26 26 using ILOG.OPL; … … 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.CPLEX { 29 29 [Item("FY-Linearization CPLEX (GQAP)", "")] 30 [Storable Class]30 [StorableType("C10D185E-B007-4C9F-9EFC-6EE1D44A3DE1")] 31 31 [Creatable(CreatableAttribute.Categories.Algorithms)] 32 32 public sealed class GQAP_FY : CplexSolver { 33 33 34 34 [StorableConstructor] 35 private GQAP_FY( bool deserializing) : base(deserializing) { }35 private GQAP_FY(StorableConstructorFlag _) : base(_) { } 36 36 private GQAP_FY(GQAP_FY original, Cloner cloner) 37 37 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/CPLEX/GQAP-KB.cs
r15575 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;25 25 using ILOG.CPLEX; 26 26 using ILOG.OPL; … … 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.CPLEX { 29 29 [Item("KB-Linearization CPLEX (GQAP)", "")] 30 [Storable Class]30 [StorableType("649D3DB6-3E54-46E7-BB12-5F26417D6E40")] 31 31 [Creatable(CreatableAttribute.Categories.Algorithms)] 32 32 public sealed class GQAP_KB : CplexSolver { 33 33 34 34 [StorableConstructor] 35 private GQAP_KB( bool deserializing) : base(deserializing) { }35 private GQAP_KB(StorableConstructorFlag _) : base(_) { } 36 36 private GQAP_KB(GQAP_KB original, Cloner cloner) 37 37 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/ESContext.cs
r15572 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.Evolutionary { 28 28 [Item("Evolution Strategy (GQAP) Context", "Context for Evolution Strategies (GQAP).")] 29 [Storable Class]29 [StorableType("8A811131-337D-4CF6-A938-FFA08BF50B40")] 30 30 public sealed class ESContext : PopulationContext<ISingleObjectiveSolutionScope<ESGQAPSolution>> { 31 31 … … 52 52 53 53 [StorableConstructor] 54 private ESContext( bool deserializing) : base(deserializing) { }54 private ESContext(StorableConstructorFlag _) : base(_) { } 55 55 private ESContext(ESContext original, Cloner cloner) 56 56 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/ESGQAPSolution.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; 25 26 using HeuristicLab.Encodings.IntegerVectorEncoding; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 27 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.Evolutionary { 29 29 [Item("ES-specific GQAP Solution", "GQAP Solution that holds a strategy parameter")] 30 [Storable Class]30 [StorableType("00A9856C-5E25-4F12-B3B0-6A9FF855B8A9")] 31 31 public class ESGQAPSolution : GQAPSolution { 32 32 … … 43 43 44 44 [StorableConstructor] 45 protected ESGQAPSolution( bool deserializing) : base(deserializing) { }45 protected ESGQAPSolution(StorableConstructorFlag _) : base(_) { } 46 46 protected ESGQAPSolution(ESGQAPSolution original, Cloner cloner) 47 47 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/EvolutionStrategy.cs
r15700 r16728 24 24 using System.Linq; 25 25 using System.Threading; 26 using HEAL.Attic; 26 27 using HeuristicLab.Common; 27 28 using HeuristicLab.Core; … … 30 31 using HeuristicLab.Optimization; 31 32 using HeuristicLab.Parameters; 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;33 33 using HeuristicLab.Random; 34 34 35 35 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.Evolutionary { 36 [StorableType("d568d524-1f84-461c-adf5-573d8e472063")] 36 37 public enum ESSelection { Plus = 0, Comma = 1 } 37 38 38 39 [Item("Evolution Strategy (GQAP)", "The algorithm implements a simple evolution strategy (ES).")] 39 40 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms)] 40 [Storable Class]41 [StorableType("A1590185-F2E3-4163-896E-28EEC93A5CDF")] 41 42 public sealed class EvolutionStrategy : StochasticAlgorithm<ESContext, IntegerVectorEncoding> { 42 43 … … 93 94 94 95 [StorableConstructor] 95 private EvolutionStrategy( bool deserializing) : base(deserializing) { }96 private EvolutionStrategy(StorableConstructorFlag _) : base(_) { } 96 97 private EvolutionStrategy(EvolutionStrategy original, Cloner cloner) 97 98 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/OSGA.cs
r15700 r16728 23 23 using System.Linq; 24 24 using System.Threading; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;32 32 33 33 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.Evolutionary { 34 34 [Item("OSGA (GQAP)", "The algorithm implements a strict offspring selection genetic algorithm (OSGA).")] 35 35 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms)] 36 [Storable Class]36 [StorableType("3BCF54DD-CECB-4027-AF2F-1764E6318B78")] 37 37 public sealed class OSGA : StochasticAlgorithm<OSGAContext, IntegerVectorEncoding> { 38 38 … … 71 71 72 72 [StorableConstructor] 73 private OSGA( bool deserializing) : base(deserializing) { }73 private OSGA(StorableConstructorFlag _) : base(_) { } 74 74 private OSGA(OSGA original, Cloner cloner) 75 75 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Evolutionary/OSGAContext.cs
r15572 r16728 21 21 22 22 using System.Linq; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Data; 26 27 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 28 29 29 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.Evolutionary { 30 30 [Item("OSGA (GQAP) Context", "Context for OSGA (GQAP).")] 31 [Storable Class]31 [StorableType("65ADDF53-91A6-4C8C-9DDE-B330E87AB32B")] 32 32 public sealed class OSGAContext : PopulationContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 33 33 … … 72 72 73 73 [StorableConstructor] 74 private OSGAContext( bool deserializing) : base(deserializing) { }74 private OSGAContext(StorableConstructorFlag _) : base(_) { } 75 75 private OSGAContext(OSGAContext original, Cloner cloner) 76 76 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/GRASP/GRASP.cs
r15704 r16728 23 23 using System.Linq; 24 24 using System.Threading; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;32 32 33 33 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.GRASP { … … 41 41 [Item("GRASP+PR (GQAP)", "The algorithm implements the Greedy Randomized Adaptive Search Procedure (GRASP) with Path Relinking as described in Mateus, G., Resende, M., and Silva, R. 2011. GRASP with path-relinking for the generalized quadratic assignment problem. Journal of Heuristics 17, Springer Netherlands, pp. 527-565.")] 42 42 [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms)] 43 [Storable Class]43 [StorableType("F39B6832-67A7-4123-B279-338914599BAB")] 44 44 public sealed class GRASP : StochasticAlgorithm<GRASPContext, IntegerVectorEncoding> { 45 45 … … 123 123 124 124 [StorableConstructor] 125 private GRASP( bool deserializing) : base(deserializing) { }125 private GRASP(StorableConstructorFlag _) : base(_) { } 126 126 private GRASP(GRASP original, Cloner cloner) 127 127 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/GRASP/GRASPContext.cs
r15572 r16728 21 21 22 22 using System.Linq; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 27 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.GRASP { 29 29 [Item("GRASP+PR (GQAP) Context", "Context for GRASP+PR (GQAP).")] 30 [Storable Class]30 [StorableType("64A7F8C0-8A38-4293-AC84-CE241EBF6F2C")] 31 31 public sealed class GRASPContext : PopulationContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 32 32 … … 50 50 51 51 [StorableConstructor] 52 private GRASPContext( bool deserializing) : base(deserializing) { }52 private GRASPContext(StorableConstructorFlag _) : base(_) { } 53 53 private GRASPContext(GRASPContext original, Cloner cloner) 54 54 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms-3.3.csproj
r15758 r16728 10 10 <RootNamespace>HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms</RootNamespace> 11 11 <AssemblyName>HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms-3.3</AssemblyName> 12 <TargetFrameworkVersion>v4. 5</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 14 <TargetFrameworkProfile /> … … 42 42 </PropertyGroup> 43 43 <ItemGroup> 44 <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 45 <SpecificVersion>False</SpecificVersion> 46 <HintPath>..\..\..\..\trunk\bin\HEAL.Attic.dll</HintPath> 47 <Private>False</Private> 48 </Reference> 44 49 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0"> 45 50 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Collections-3.3.dll</HintPath> -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Algorithms/ContextAlgorithm.cs
r15718 r16728 24 24 using System.Linq; 25 25 using System.Threading; 26 using HEAL.Attic; 26 27 using HeuristicLab.Analysis; 27 28 using HeuristicLab.Common; … … 30 31 using HeuristicLab.Optimization; 31 32 using HeuristicLab.Parameters; 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;33 33 34 34 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 35 35 [Item("Context-based Algorithm", "Algorithms that make use of contexts to facilitate applying operators.")] 36 [Storable Class]36 [StorableType("F7679602-28B2-495C-AF6C-370EFC7BE38A")] 37 37 public abstract class ContextAlgorithm<TContext, TEncoding> : BasicAlgorithm 38 38 where TContext : class, IContext, new() … … 110 110 111 111 [StorableConstructor] 112 protected ContextAlgorithm( bool deserializing) : base(deserializing) { }112 protected ContextAlgorithm(StorableConstructorFlag _) : base(_) { } 113 113 protected ContextAlgorithm(ContextAlgorithm<TContext, TEncoding> original, Cloner cloner) 114 114 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Algorithms/StochasticAlgorithm.cs
r15572 r16728 21 21 22 22 using System.Threading; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 26 27 using HeuristicLab.Optimization; 27 28 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;29 29 using HeuristicLab.Random; 30 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 32 32 [Item("Stochastic Algorithm", "Stochastic context-based algorithms to facilitate applying operators.")] 33 [Storable Class]33 [StorableType("749A9442-BCE6-45A1-8911-159217199013")] 34 34 public abstract class StochasticAlgorithm<TContext, TEncoding> : ContextAlgorithm<TContext, TEncoding> 35 35 where TContext : class, IStochasticContext, new() … … 57 57 58 58 [StorableConstructor] 59 protected StochasticAlgorithm( bool deserializing) : base(deserializing) { }59 protected StochasticAlgorithm(StorableConstructorFlag _) : base(_) { } 60 60 protected StochasticAlgorithm(StochasticAlgorithm<TContext, TEncoding> original, Cloner cloner) 61 61 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/BasicContext.cs
r15700 r16728 23 23 using System.Collections.Generic; 24 24 using System.Threading; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Data; 28 29 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 32 32 [Item("Basic Context", "A base class for algorithms' contexts.")] 33 [Storable Class]33 [StorableType("633CC9F2-35B9-4193-A022-0D768532937A")] 34 34 public class BasicContext : ParameterizedNamedItem, IContext { 35 35 … … 77 77 78 78 [StorableConstructor] 79 protected BasicContext( bool deserializing) : base(deserializing) { }79 protected BasicContext(StorableConstructorFlag _) : base(_) { } 80 80 protected BasicContext(BasicContext original, Cloner cloner) 81 81 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/PopulationContext.cs
r15616 r16728 22 22 using System.Collections.Generic; 23 23 using System.Linq; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 27 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 29 29 [Item("Population Context", "A context for population-based algorithms.")] 30 [Storable Class]30 [StorableType("2FF3BB92-80E9-4463-B05A-5D36B76873A6")] 31 31 public abstract class PopulationContext<TSolutionScope> : StochasticContext 32 32 where TSolutionScope: class, IScope { … … 56 56 57 57 [StorableConstructor] 58 protected PopulationContext( bool deserializing) : base(deserializing) { }58 protected PopulationContext(StorableConstructorFlag _) : base(_) { } 59 59 protected PopulationContext(PopulationContext<TSolutionScope> original, Cloner cloner) 60 60 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/SingleSolutionContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;25 25 26 26 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 27 27 [Item("Single Solution Context", "A context for single solution algorithms.")] 28 [Storable Class]28 [StorableType("1AE4E4ED-21C5-48E7-833C-58D813557026")] 29 29 public abstract class SingleSolutionContext<TSolutionScope> : StochasticContext 30 30 where TSolutionScope: class, IScope { … … 44 44 45 45 [StorableConstructor] 46 protected SingleSolutionContext( bool deserializing) : base(deserializing) { }46 protected SingleSolutionContext(StorableConstructorFlag _) : base(_) { } 47 47 protected SingleSolutionContext(SingleSolutionContext<TSolutionScope> original, Cloner cloner) 48 48 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Contexts/StochasticContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 28 28 [Item("Stochastic Context", "A base class for stochastic algorithms' contexts.")] 29 [Storable Class]29 [StorableType("9A9B3147-4D77-45E7-9A79-B6393666AB2E")] 30 30 public class StochasticContext : BasicContext, IStochasticContext { 31 31 … … 38 38 39 39 [StorableConstructor] 40 protected StochasticContext( bool deserializing) : base(deserializing) { }40 protected StochasticContext(StorableConstructorFlag _) : base(_) { } 41 41 protected StochasticContext(StochasticContext original, Cloner cloner) 42 42 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/Interfaces.cs
r15700 r16728 21 21 22 22 using System; 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 25 25 26 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 27 [StorableType("2bab7669-028a-4ba8-9c63-60853e15ad47")] 26 28 public interface ISingleObjectiveSolutionScope<TSolution> : IScope { 27 29 TSolution Solution { get; set; } 28 30 double Fitness { get; set; } 29 31 } 30 32 [StorableType("0ae52e60-5ea1-428f-99ca-b7b84a79857d")] 31 33 public interface IContext : IExecutionContext { 32 34 new IExecutionContext Parent { get; set; } … … 37 39 event EventHandler BestQualityChanged; 38 40 } 39 41 [StorableType("ab766d45-2dab-4280-9f4e-1531fe9a91cf")] 40 42 public interface IStochasticContext : IContext { 41 43 IRandom Random { get; set; } -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/Infrastructure/SingleObjectiveSolutionScope.cs
r15572 r16728 21 21 22 22 using System.Drawing; 23 using HEAL.Attic; 23 24 using HeuristicLab.Collections; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 27 using HeuristicLab.Data; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;28 28 29 29 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms { 30 30 [Item("Solution Scope", "Scope for an individual/solution of a single-objective single-encoded problem.")] 31 [Storable Class]31 [StorableType("C3F4010D-8B4F-4F0E-B99C-1B78AED8F114")] 32 32 public sealed class SingleObjectiveSolutionScope<T> : NamedItem, ISingleObjectiveSolutionScope<T> where T : class, IItem { 33 33 public new static Image StaticItemImage { … … 73 73 74 74 [StorableConstructor] 75 private SingleObjectiveSolutionScope( bool deserializing) : base(deserializing) { }75 private SingleObjectiveSolutionScope(StorableConstructorFlag _) : base(_) { } 76 76 private SingleObjectiveSolutionScope(SingleObjectiveSolutionScope<T> original, Cloner cloner) 77 77 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LAHC/LAHC.cs
r15700 r16728 23 23 using System.Linq; 24 24 using System.Threading; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;32 32 33 33 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LAHC { 34 34 [Item("LAHC (GQAP)", "Late-acceptance hill climber for the GQAP.")] 35 35 [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms)] 36 [Storable Class]36 [StorableType("41FABEE1-506A-45FE-A6D3-57932036AEC8")] 37 37 public sealed class LAHC : StochasticAlgorithm<LAHCContext, IntegerVectorEncoding> { 38 38 … … 62 62 63 63 [StorableConstructor] 64 private LAHC( bool deserializing) : base(deserializing) { }64 private LAHC(StorableConstructorFlag _) : base(_) { } 65 65 private LAHC(LAHC original, Cloner cloner) 66 66 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LAHC/LAHCContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; 25 26 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 27 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LAHC { 29 29 [Item("LAHC Context", "Context for late-acceptance hill climber")] 30 [Storable Class]30 [StorableType("546B6C06-D986-49AA-BDEB-B664D2A9DA8C")] 31 31 public sealed class LAHCContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 32 32 [Storable] … … 59 59 60 60 [StorableConstructor] 61 private LAHCContext( bool deserializing) : base(deserializing) { }61 private LAHCContext(StorableConstructorFlag _) : base(_) { } 62 62 private LAHCContext(LAHCContext original, Cloner cloner) 63 63 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LAHC/pLAHC.cs
r15700 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 28 29 using HeuristicLab.Optimization; 29 30 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;31 31 32 32 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LAHC { 33 33 [Item("pLAHC-s (GQAP)", "Parameterless Late-acceptance hill climber for the GQAP.")] 34 34 [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms)] 35 [Storable Class]35 [StorableType("90A97927-D784-4F73-9215-ADC75A9F6C9D")] 36 36 public sealed class PLAHCS : StochasticAlgorithm<PLAHCContext, IntegerVectorEncoding> { 37 37 … … 72 72 73 73 [StorableConstructor] 74 private PLAHCS( bool deserializing) : base(deserializing) { }74 private PLAHCS(StorableConstructorFlag _) : base(_) { } 75 75 private PLAHCS(PLAHCS original, Cloner cloner) 76 76 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LAHC/pLAHCContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Data; 25 26 using HeuristicLab.Parameters; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;27 27 28 28 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LAHC { 29 29 [Item("pLAHC-s Context", "Context for parameterless late-acceptance hill climber with seeding.")] 30 [Storable Class]30 [StorableType("3C550AB5-8FEC-42DA-9200-ABC98A1C20EA")] 31 31 public sealed class PLAHCContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 32 32 [Storable] … … 73 73 74 74 [StorableConstructor] 75 private PLAHCContext( bool deserializing) : base(deserializing) { }75 private PLAHCContext(StorableConstructorFlag _) : base(_) { } 76 76 private PLAHCContext(PLAHCContext original, Cloner cloner) 77 77 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSearch/IteratedLS.cs
r15700 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 28 29 using HeuristicLab.Optimization; 29 30 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;31 31 32 32 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSearch { 33 33 [Item("Iterated Local Search (GQAP)", "Iterated local search for the GQAP.")] 34 34 [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms)] 35 [Storable Class]35 [StorableType("2C8EE433-B133-4382-8B4F-4EFFA536D759")] 36 36 public sealed class IteratedLS : StochasticAlgorithm<LocalSearchContext, IntegerVectorEncoding> { 37 37 … … 61 61 62 62 [StorableConstructor] 63 private IteratedLS( bool deserializing) : base(deserializing) { }63 private IteratedLS(StorableConstructorFlag _) : base(_) { } 64 64 private IteratedLS(IteratedLS original, Cloner cloner) 65 65 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSearch/LocalSearchContext.cs
r15616 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSearch { 28 28 [Item("Local Search Context", "Context for local search algorithms.")] 29 [Storable Class]29 [StorableType("1AD51259-7DDB-43C1-A4A0-9E8B652988B1")] 30 30 public sealed class LocalSearchContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 31 31 [Storable] … … 44 44 45 45 [StorableConstructor] 46 private LocalSearchContext( bool deserializing) : base(deserializing) { }46 private LocalSearchContext(StorableConstructorFlag _) : base(_) { } 47 47 private LocalSearchContext(LocalSearchContext original, Cloner cloner) 48 48 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSearch/MultistartLS.cs
r15700 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSearch { 32 32 [Item("Multi-start Local Search (GQAP)", "Multi-start local search for the GQAP.")] 33 33 [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms)] 34 [Storable Class]34 [StorableType("DA79118A-BA6B-4A0F-81E6-752D750BF7F4")] 35 35 public sealed class MultistartLS : StochasticAlgorithm<LocalSearchContext, IntegerVectorEncoding> { 36 36 … … 49 49 50 50 [StorableConstructor] 51 private MultistartLS( bool deserializing) : base(deserializing) { }51 private MultistartLS(StorableConstructorFlag _) : base(_) { } 52 52 private MultistartLS(MultistartLS original, Cloner cloner) 53 53 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPBinarySolver.cs
r15713 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 using localsolver; 31 31 32 32 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSolverNet { 33 33 [Item("LocalSolver Binary (GQAP)", "LocalSolver algorithm solving the GQAP using 0-1 decision variables")] 34 [Storable Class]34 [StorableType("E9040268-4240-4EF7-8E9A-6991D0831D06")] 35 35 [Creatable(CreatableAttribute.Categories.Algorithms)] 36 36 public sealed class GQAPBinarySolver : ContextAlgorithm<LocalSolverContext, IntegerVectorEncoding> { … … 56 56 57 57 [StorableConstructor] 58 private GQAPBinarySolver( bool deserializing) : base(deserializing) { }58 private GQAPBinarySolver(StorableConstructorFlag _) : base(_) { } 59 59 private GQAPBinarySolver(GQAPBinarySolver original, Cloner cloner) 60 60 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPIntegerSolver.cs
r15713 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 using localsolver; 31 31 32 32 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSolverNet { 33 33 [Item("LocalSolver Integer (GQAP)", "LocalSolver algorithm solving the GQAP using integer decision variables")] 34 [Storable Class]34 [StorableType("6D0D77CE-A8DE-41EA-9674-A1D59782D03B")] 35 35 [Creatable(CreatableAttribute.Categories.Algorithms)] 36 36 public sealed class GQAPIntegerSolver : ContextAlgorithm<LocalSolverContext, IntegerVectorEncoding> { … … 55 55 56 56 [StorableConstructor] 57 private GQAPIntegerSolver( bool deserializing) : base(deserializing) { }57 private GQAPIntegerSolver(StorableConstructorFlag _) : base(_) { } 58 58 private GQAPIntegerSolver(GQAPIntegerSolver original, Cloner cloner) 59 59 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/GQAPListSolver.cs
r15890 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 using localsolver; 31 31 32 32 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSolverNet { 33 33 [Item("LocalSolver List (GQAP)", "LocalSolver algorithm solving the GQAP using list decision variables")] 34 [Storable Class]34 [StorableType("BBB27FAA-DCFD-4DB4-A465-4A02E1A0EDA9")] 35 35 [Creatable(CreatableAttribute.Categories.Algorithms)] 36 36 public sealed class GQAPListSolver : ContextAlgorithm<LocalSolverContext, IntegerVectorEncoding> { … … 55 55 56 56 [StorableConstructor] 57 private GQAPListSolver( bool deserializing) : base(deserializing) { }57 private GQAPListSolver(StorableConstructorFlag _) : base(_) { } 58 58 private GQAPListSolver(GQAPListSolver original, Cloner cloner) 59 59 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/LocalSolverNet/LocalSolverContext.cs
r15700 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.LocalSolverNet { 28 28 [Item("LocalSolver Context", "A context for CPLEX solvers.")] 29 [Storable Class]29 [StorableType("DAE4D0C7-AFE1-4FCF-9DD5-899E4DC4FD9E")] 30 30 public class LocalSolverContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 31 31 … … 45 45 46 46 [StorableConstructor] 47 protected LocalSolverContext( bool deserializing) : base(deserializing) { }47 protected LocalSolverContext(StorableConstructorFlag _) : base(_) { } 48 48 protected LocalSolverContext(LocalSolverContext original, Cloner cloner) 49 49 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/RandomSearch/RandomSearch.cs
r15703 r16728 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 27 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 30 31 31 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.RandomSearch { 32 32 [Item("Random Search (GQAP)", "Random search for the GQAP.")] 33 33 [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms)] 34 [Storable Class]34 [StorableType("D6ED1A84-BBCD-4163-96A7-47F3DCACBE49")] 35 35 public sealed class RandomSearch : StochasticAlgorithm<RandomSearchContext, IntegerVectorEncoding> { 36 36 … … 49 49 50 50 [StorableConstructor] 51 private RandomSearch( bool deserializing) : base(deserializing) { }51 private RandomSearch(StorableConstructorFlag _) : base(_) { } 52 52 private RandomSearch(RandomSearch original, Cloner cloner) 53 53 : base(original, cloner) { -
branches/1614_GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms/3.3/RandomSearch/RandomSearchContext.cs
r15698 r16728 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Parameters; 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;26 26 27 27 namespace HeuristicLab.Problems.GeneralizedQuadraticAssignment.Algorithms.RandomSearch { 28 28 [Item("Random Search Context", "Context for random search algorithms.")] 29 [Storable Class]29 [StorableType("49827D3F-3668-44C8-888B-5F5EB6769652")] 30 30 public sealed class RandomSearchContext : SingleSolutionContext<ISingleObjectiveSolutionScope<GQAPSolution>> { 31 31 [Storable] … … 44 44 45 45 [StorableConstructor] 46 private RandomSearchContext( bool deserializing) : base(deserializing) { }46 private RandomSearchContext(StorableConstructorFlag _) : base(_) { } 47 47 private RandomSearchContext(RandomSearchContext original, Cloner cloner) 48 48 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.