- Timestamp:
- 05/04/17 17:19:35 (8 years ago)
- Location:
- branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/BasicProblem.cs
r14185 r14927 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 [Storable Class]31 [StorableType("7ad76422-1b2f-4e10-9d28-fb18ac5246ba")] 32 32 public abstract class BasicProblem<TEncoding, TEvaluator> : HeuristicOptimizationProblem<TEvaluator, ISolutionCreator>, IProblemDefinition, IStorableContent 33 33 where TEncoding : class, IEncoding … … 67 67 Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.")); 68 68 oldEncoding = Encoding; 69 if (Encoding != null) Parameterize();69 if (Encoding != null) Parameterize(); 70 70 RegisterEvents(); 71 71 } -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Encoding.cs
r14185 r14927 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 31 [Item("Encoding", "Base class for describing different encodings.")] 32 [Storable Class]32 [StorableType("fae42d83-7076-4ff0-92aa-0eee034b0b13")] 33 33 public abstract class Encoding<T> : ParameterizedNamedItem, IEncoding 34 where T : class, ISolutionCreator {34 where T : class, ISolutionCreator { 35 35 public override sealed bool CanChangeName { 36 36 get { return false; } -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Individuals/MultiEncodingIndividual.cs
r14877 r14927 46 46 try { 47 47 encoding = (TEncoding)Encoding.Encodings.SingleOrDefault(e => e is TEncoding); 48 } 49 catch (InvalidOperationException) { 48 } catch (InvalidOperationException) { 50 49 throw new InvalidOperationException(string.Format("The individual uses multiple {0} .", typeof(TEncoding).GetPrettyName())); 51 50 } -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/MultiEncoding.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 using HeuristicLab.PluginInfrastructure; 29 29 30 30 namespace HeuristicLab.Optimization { 31 31 [Item("MultiEncoding", "Describes a combined encoding consisting of multiple simpler encodings.")] 32 [Storable Class]32 [StorableType("11b01f45-059a-41f5-9598-790966fdc9dc")] 33 33 public sealed class MultiEncoding : Encoding<MultiEncodingCreator> { 34 34 -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveBasicProblem.cs
r14185 r14927 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Optimization { 30 [Storable Class]30 [StorableType("3d6385f7-0983-4acb-8f18-69d27b065ac8")] 31 31 public abstract class MultiObjectiveBasicProblem<TEncoding> : BasicProblem<TEncoding, MultiObjectiveEvaluator>, IMultiObjectiveHeuristicOptimizationProblem, IMultiObjectiveProblemDefinition 32 32 where TEncoding : class, IEncoding { -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiEncodingCreator.cs
r14185 r14927 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Optimization { 29 29 [Item("MultiEncodingCreator", "Contains solution creators that together create a multi-encoding.")] 30 [Storable Class]30 [StorableType("9588eae5-5e0f-43bb-b2bb-0b93b28ca02a")] 31 31 public sealed class MultiEncodingCreator : MultiEncodingOperator<ISolutionCreator>, ISolutionCreator { 32 32 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiEncodingCrossover.cs
r14185 r14927 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;24 using HeuristicLab.Persistence; 25 25 26 26 namespace HeuristicLab.Optimization { 27 27 [Item("MultiEncoding Crossover", "Applies different crossovers to cross a multi-encoding.")] 28 [Storable Class]28 [StorableType("c2ce6b47-622b-4a09-a8d3-337629fdd0a7")] 29 29 public sealed class MultiEncodingCrossover : MultiEncodingOperator<ICrossover>, ICrossover { 30 30 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiEncodingManipulator.cs
r14185 r14927 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;24 using HeuristicLab.Persistence; 25 25 26 26 namespace HeuristicLab.Optimization { 27 27 [Item("MultiEncoding Manipulator", "Applies different manipulators to change a multi-encoding.")] 28 [Storable Class]28 [StorableType("c24f0b97-b885-4e2e-aead-f5cce69b4de4")] 29 29 public sealed class MultiEncodingManipulator : MultiEncodingOperator<IManipulator>, IManipulator { 30 30 [StorableConstructor] -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiEncodingOperator.cs
r14185 r14927 27 27 using HeuristicLab.Operators; 28 28 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Optimization { 32 [Storable Class]33 public abstract class MultiEncodingOperator<T> : Operator, IMultiEncodingOperator where T : class, IOperator {32 [StorableType("4590340e-4f05-4582-999e-de0f23d1be4b")] 33 public abstract class MultiEncodingOperator<T> : Operator, IMultiEncodingOperator where T : class, IOperator { 34 34 private List<IEncoding> encodings = new List<IEncoding>(); 35 35 [Storable(Name = "Encodings")] -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiObjectiveAnalyzer.cs
r14185 r14927 28 28 using HeuristicLab.Operators; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;30 using HeuristicLab.Persistence; 31 31 32 32 namespace HeuristicLab.Optimization { 33 33 [Item("Multi-objective Analyzer", "Calls the Analyze method of the problem definition.")] 34 [Storable Class]34 [StorableType("aaaad94e-b94e-45d9-aefd-c452f123f39c")] 35 35 public class MultiObjectiveAnalyzer : SingleSuccessorOperator, IMultiObjectiveAnalysisOperator, IStochasticOperator { 36 36 public bool EnabledByDefault { get { return true; } } -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiObjectiveEvaluator.cs
r14185 r14927 26 26 using HeuristicLab.Operators; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 31 [Item("Multi-objective Evaluator", "Calls the Evaluate method of the problem definition and writes the return value into the scope.")] 32 [Storable Class]32 [StorableType("14c2280c-f384-485f-8b26-dac9c9529624")] 33 33 public class MultiObjectiveEvaluator : InstrumentedOperator, IMultiObjectiveEvaluationOperator, IStochasticOperator { 34 34 -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveAnalyzer.cs
r14185 r14927 28 28 using HeuristicLab.Operators; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;30 using HeuristicLab.Persistence; 31 31 32 32 namespace HeuristicLab.Optimization { 33 33 [Item("Single-objective Analyzer", "Calls the script's Analyze method to be able to write into the results collection.")] 34 [Storable Class]34 [StorableType("3644689d-7f66-40ff-acf3-0e5347f6c07d")] 35 35 public sealed class SingleObjectiveAnalyzer : SingleSuccessorOperator, ISingleObjectiveAnalysisOperator, IAnalyzer, IStochasticOperator { 36 36 public bool EnabledByDefault { get { return true; } } -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveEvaluator.cs
r14185 r14927 26 26 using HeuristicLab.Operators; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 31 [Item("Single-objective Evaluator", "Calls the script's Evaluate method to get the quality value of the parameter vector.")] 32 [Storable Class]32 [StorableType("15490f3e-1d0f-4e8f-94d7-ede4b78090ce")] 33 33 public sealed class SingleObjectiveEvaluator : InstrumentedOperator, ISingleObjectiveEvaluationOperator, IStochasticOperator { 34 34 -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveImprover.cs
r14185 r14927 28 28 using HeuristicLab.Operators; 29 29 using HeuristicLab.Parameters; 30 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;30 using HeuristicLab.Persistence; 31 31 32 32 namespace HeuristicLab.Optimization { 33 33 [Item("Single-objective Improver", "Improves a solution by calling GetNeighbors and Evaluate of the corresponding problem definition.")] 34 [Storable Class]34 [StorableType("1a7e0e73-c6ed-4cbc-a62c-3563b963aec4")] 35 35 public sealed class SingleObjectiveImprover : SingleSuccessorOperator, INeighborBasedOperator, IImprovementOperator, ISingleObjectiveEvaluationOperator, IStochasticOperator { 36 36 public ILookupParameter<IRandom> RandomParameter { -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveMoveEvaluator.cs
r14185 r14927 26 26 using HeuristicLab.Operators; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 31 [Item("Single-objective MoveEvaluator", "Evaluates a parameter vector that results from a move.")] 32 [Storable Class]32 [StorableType("0c7385a5-136a-4036-84d2-2d7af47991ca")] 33 33 public class SingleObjectiveMoveEvaluator : SingleSuccessorOperator, ISingleObjectiveEvaluationOperator, ISingleObjectiveMoveEvaluator, IStochasticOperator, ISingleObjectiveMoveOperator { 34 34 -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveMoveGenerator.cs
r14185 r14927 29 29 using HeuristicLab.Operators; 30 30 using HeuristicLab.Parameters; 31 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;31 using HeuristicLab.Persistence; 32 32 33 33 namespace HeuristicLab.Optimization { 34 34 [Item("Single-objective MoveGenerator", "Calls the GetNeighbors method of the problem definition to obtain the moves.")] 35 [Storable Class]35 [StorableType("a1db93c6-33b5-4c3a-a3fe-7abe4e9748e6")] 36 36 public class SingleObjectiveMoveGenerator : SingleSuccessorOperator, INeighborBasedOperator, IMultiMoveGenerator, IStochasticOperator, ISingleObjectiveMoveOperator { 37 37 public ILookupParameter<IRandom> RandomParameter { -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveMoveMaker.cs
r14185 r14927 26 26 using HeuristicLab.Operators; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 31 [Item("Single-objective MoveMaker", "Applies a move.")] 32 [Storable Class]32 [StorableType("5e58f693-0b40-43a7-96c3-9ca8c9ff2354")] 33 33 public class SingleObjectiveMoveMaker : InstrumentedOperator, IMoveMaker, ISingleObjectiveMoveOperator { 34 34 public ILookupParameter<IEncoding> EncodingParameter { -
branches/PersistenceReintegration/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveBasicProblem.cs
r14185 r14927 26 26 using HeuristicLab.Data; 27 27 using HeuristicLab.Parameters; 28 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;28 using HeuristicLab.Persistence; 29 29 30 30 namespace HeuristicLab.Optimization { 31 [Storable Class]31 [StorableType("b3b8a681-3e04-4bfd-a49f-8ed88a65b992")] 32 32 public abstract class SingleObjectiveBasicProblem<TEncoding> : BasicProblem<TEncoding, SingleObjectiveEvaluator>, 33 33 ISingleObjectiveProblemDefinition, ISingleObjectiveHeuristicOptimizationProblem
Note: See TracChangeset
for help on using the changeset viewer.