- Timestamp:
- 03/28/19 17:19:09 (6 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs
r16723 r16725 21 21 22 22 using System.Drawing; 23 using HEAL.Attic; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Common.Resources; … … 27 28 using HeuristicLab.Optimization; 28 29 using HeuristicLab.Parameters; 29 using HEAL.Attic;30 30 using HeuristicLab.Scripting; 31 31 … … 61 61 62 62 [StorableConstructor] 63 pr ivateMultiObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { }63 protected MultiObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { } 64 64 protected MultiObjectiveProgrammableProblem(MultiObjectiveProgrammableProblem<TEncoding, TSolution> original, Cloner cloner) 65 65 : base(original, cloner) { -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r16723 r16725 23 23 using System.Linq; 24 24 using System.Reflection; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; 27 28 using HeuristicLab.Optimization; 28 using HEAL.Attic;29 29 using HeuristicLab.Scripting; 30 30 … … 55 55 56 56 [Item("ProblemDefinitionScript", "Script that defines the parameter vector and evaluates the solution for a programmable problem.")] 57 [Storable Class]57 [StorableType("0B3AF22C-4744-4860-BBCF-A92046000847")] 58 58 public abstract class ProblemDefinitionScript<TEncoding, TSolution> : ProblemDefinitionScript, IProblemDefinition<TEncoding, TSolution> 59 59 where TEncoding : class, IEncoding<TSolution> … … 79 79 80 80 [StorableConstructor] 81 protected ProblemDefinitionScript( bool deserializing) : base(deserializing) { }81 protected ProblemDefinitionScript(StorableConstructorFlag _) : base(_) { } 82 82 protected ProblemDefinitionScript(ProblemDefinitionScript<TEncoding, TSolution> original, Cloner cloner) 83 83 : base(original, cloner) { -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/ProgrammableProblemInstances.cs
r13376 r16725 22 22 #endregion 23 23 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 31 32 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 32 33 using HeuristicLab.Optimization; 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;34 34 35 35 namespace HeuristicLab.Problems.Programmable { … … 37 37 [Item("Binary Vector Problem (single-objective)", "Represents a binary vector single-objective problem that can be programmed with a script.")] 38 38 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 100)] 39 [Storable Class]39 [StorableType("FD06DC4B-FB2C-4325-817A-AC030683537B")] 40 40 public sealed class SingleObjectiveBinaryVectorProgrammableProblem : SingleObjectiveProgrammableProblem<BinaryVectorEncoding, BinaryVector> { 41 41 42 42 [StorableConstructor] 43 private SingleObjectiveBinaryVectorProgrammableProblem( bool deserializing) : base(deserializing) { }43 private SingleObjectiveBinaryVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { } 44 44 private SingleObjectiveBinaryVectorProgrammableProblem(SingleObjectiveBinaryVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 45 45 … … 61 61 [Item("Integer Vector Problem (single-objective)", "Represents an integer vector single-objective problem that can be programmed with a script.")] 62 62 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 101)] 63 [Storable Class]63 [StorableType("650DF07C-886D-48DF-B796-CE8C18471E40")] 64 64 public sealed class SingleObjectiveIntegerVectorProgrammableProblem : SingleObjectiveProgrammableProblem<IntegerVectorEncoding, IntegerVector> { 65 65 66 66 [StorableConstructor] 67 private SingleObjectiveIntegerVectorProgrammableProblem( bool deserializing) : base(deserializing) { }67 private SingleObjectiveIntegerVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { } 68 68 private SingleObjectiveIntegerVectorProgrammableProblem(SingleObjectiveIntegerVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 69 69 … … 84 84 [Item("Real Vector Problem (single-objective)", "Represents a real vector single-objective problem that can be programmed with a script.")] 85 85 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 102)] 86 [Storable Class]86 [StorableType("FA01E098-D70B-4782-85E0-8DCF9D1F72D3")] 87 87 public sealed class SingleObjectiveRealVectorProgrammableProblem : SingleObjectiveProgrammableProblem<RealVectorEncoding, RealVector> { 88 88 89 89 [StorableConstructor] 90 private SingleObjectiveRealVectorProgrammableProblem( bool deserializing) : base(deserializing) { }90 private SingleObjectiveRealVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { } 91 91 private SingleObjectiveRealVectorProgrammableProblem(SingleObjectiveRealVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 92 92 … … 107 107 [Item("Permutation Problem (single-objective)", "Represents a permutation single-objective problem that can be programmed with a script.")] 108 108 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 103)] 109 [Storable Class]109 [StorableType("51D851AD-8F12-4C00-A626-CDF785574C07")] 110 110 public sealed class SingleObjectivePermutationProgrammableProblem : SingleObjectiveProgrammableProblem<PermutationEncoding, Permutation> { 111 111 112 112 [StorableConstructor] 113 private SingleObjectivePermutationProgrammableProblem( bool deserializing) : base(deserializing) { }113 private SingleObjectivePermutationProgrammableProblem(StorableConstructorFlag _) : base(_) { } 114 114 private SingleObjectivePermutationProgrammableProblem(SingleObjectivePermutationProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 115 115 … … 130 130 [Item("Symbolic Expression Tree Problem (single-objective)", "Represents a symbolic expression tree single-objective problem that can be programmed with a script.")] 131 131 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 104)] 132 [Storable Class]132 [StorableType("49EE7342-D54E-42D4-ADC1-0E79599385A2")] 133 133 public sealed class SingleObjectiveSymbolicExpressionTreeProgrammableProblem : SingleObjectiveProgrammableProblem<SymbolicExpressionTreeEncoding, ISymbolicExpressionTree> { 134 134 135 135 [StorableConstructor] 136 private SingleObjectiveSymbolicExpressionTreeProgrammableProblem( bool deserializing) : base(deserializing) { }136 private SingleObjectiveSymbolicExpressionTreeProgrammableProblem(StorableConstructorFlag _) : base(_) { } 137 137 private SingleObjectiveSymbolicExpressionTreeProgrammableProblem(SingleObjectiveSymbolicExpressionTreeProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 138 138 public SingleObjectiveSymbolicExpressionTreeProgrammableProblem() … … 152 152 [Item("Linear Linkage Problem (single-objective)", "Represents a linear linkage single-objective problem that can be programmed with a script.")] 153 153 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 105)] 154 [Storable Class]154 [StorableType("C6D025AC-C09A-49F1-BB2C-F40A16687E95")] 155 155 public sealed class SingleObjectiveLinearLinkageProgrammableProblem : SingleObjectiveProgrammableProblem<LinearLinkageEncoding, LinearLinkage> { 156 156 157 157 [StorableConstructor] 158 private SingleObjectiveLinearLinkageProgrammableProblem( bool deserializing) : base(deserializing) { }158 private SingleObjectiveLinearLinkageProgrammableProblem(StorableConstructorFlag _) : base(_) { } 159 159 private SingleObjectiveLinearLinkageProgrammableProblem(SingleObjectiveLinearLinkageProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 160 160 public SingleObjectiveLinearLinkageProgrammableProblem() … … 174 174 [Item("Combined Encoding Problem (single-objective)", "Represents a combined encoding single-objective problem that can be programmed with a script.")] 175 175 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 1000)] 176 [Storable Class]176 [StorableType("BF5186A9-8695-484D-888D-0DAE0F344AAD")] 177 177 public sealed class SingleObjectiveCombinedEncodingProgrammableProblem : SingleObjectiveProgrammableProblem<CombinedEncoding, CombinedSolution> { 178 178 179 179 [StorableConstructor] 180 private SingleObjectiveCombinedEncodingProgrammableProblem( bool deserializing) : base(deserializing) { }180 private SingleObjectiveCombinedEncodingProgrammableProblem(StorableConstructorFlag _) : base(_) { } 181 181 private SingleObjectiveCombinedEncodingProgrammableProblem(SingleObjectiveCombinedEncodingProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 182 182 … … 196 196 [Item("Binary Vector Problem (multi-objective)", "Represents a binary vector multi-objective problem that can be programmed with a script.")] 197 197 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 100)] 198 [Storable Class]198 [StorableType("750F0CF5-2779-49A7-BC32-EA3C593B50DE")] 199 199 public sealed class MultiObjectiveBinaryVectorProgrammableProblem : MultiObjectiveProgrammableProblem<BinaryVectorEncoding, BinaryVector> { 200 200 201 201 [StorableConstructor] 202 private MultiObjectiveBinaryVectorProgrammableProblem( bool deserializing) : base(deserializing) { }202 private MultiObjectiveBinaryVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { } 203 203 private MultiObjectiveBinaryVectorProgrammableProblem(MultiObjectiveBinaryVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 204 204 … … 220 220 [Item("Integer Vector Problem (multi-objective)", "Represents an integer vector multi-objective problem that can be programmed with a script.")] 221 221 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 101)] 222 [Storable Class]222 [StorableType("442F242E-29E6-416A-8CA3-C216300A1FA5")] 223 223 public sealed class MultiObjectiveIntegerVectorProgrammableProblem : MultiObjectiveProgrammableProblem<IntegerVectorEncoding, IntegerVector> { 224 224 225 225 [StorableConstructor] 226 private MultiObjectiveIntegerVectorProgrammableProblem( bool deserializing) : base(deserializing) { }226 private MultiObjectiveIntegerVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { } 227 227 private MultiObjectiveIntegerVectorProgrammableProblem(MultiObjectiveIntegerVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 228 228 … … 243 243 [Item("Real Vector Problem (multi-objective)", "Represents a real vector multi-objective problem that can be programmed with a script.")] 244 244 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 102)] 245 [Storable Class]245 [StorableType("2DEFF24A-755A-4E22-8DD8-B791C0BCC832")] 246 246 public sealed class MultiObjectiveRealVectorProgrammableProblem : MultiObjectiveProgrammableProblem<RealVectorEncoding, RealVector> { 247 247 248 248 [StorableConstructor] 249 private MultiObjectiveRealVectorProgrammableProblem( bool deserializing) : base(deserializing) { }249 private MultiObjectiveRealVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { } 250 250 private MultiObjectiveRealVectorProgrammableProblem(MultiObjectiveRealVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 251 251 … … 266 266 [Item("Permutation Problem (multi-objective)", "Represents a permutation multi-objective problem that can be programmed with a script.")] 267 267 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 103)] 268 [Storable Class]268 [StorableType("23FC641C-770B-49A2-AA3C-5862F4A55F94")] 269 269 public sealed class MultiObjectivePermutationProgrammableProblem : MultiObjectiveProgrammableProblem<PermutationEncoding, Permutation> { 270 270 271 271 [StorableConstructor] 272 private MultiObjectivePermutationProgrammableProblem( bool deserializing) : base(deserializing) { }272 private MultiObjectivePermutationProgrammableProblem(StorableConstructorFlag _) : base(_) { } 273 273 private MultiObjectivePermutationProgrammableProblem(MultiObjectivePermutationProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 274 274 public MultiObjectivePermutationProgrammableProblem() … … 288 288 [Item("Symbolic Expression Tree Programmable Problem (multi-objective)", "Represents a symbolic expression tree multi-objective problem that can be programmed with a script.")] 289 289 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 104)] 290 [Storable Class]290 [StorableType("FAEA5ED6-EA8F-4EA2-B84C-7A1B4491292A")] 291 291 public sealed class MultiObjectiveSymbolicExpressionTreeProgrammableProblem : MultiObjectiveProgrammableProblem<SymbolicExpressionTreeEncoding, ISymbolicExpressionTree> { 292 292 293 293 [StorableConstructor] 294 private MultiObjectiveSymbolicExpressionTreeProgrammableProblem( bool deserializing) : base(deserializing) { }294 private MultiObjectiveSymbolicExpressionTreeProgrammableProblem(StorableConstructorFlag _) : base(_) { } 295 295 private MultiObjectiveSymbolicExpressionTreeProgrammableProblem(MultiObjectiveSymbolicExpressionTreeProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 296 296 public MultiObjectiveSymbolicExpressionTreeProgrammableProblem() … … 310 310 [Item("Linear Linkage Programmable Problem (multi-objective)", "Represents a linear linkage multi-objective problem that can be programmed with a script.")] 311 311 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 105)] 312 [Storable Class]312 [StorableType("207E3110-4937-4A95-9331-39880739D7CF")] 313 313 public sealed class MultiObjectiveLinearLinkageProgrammableProblem : MultiObjectiveProgrammableProblem<LinearLinkageEncoding, LinearLinkage> { 314 314 315 315 [StorableConstructor] 316 private MultiObjectiveLinearLinkageProgrammableProblem( bool deserializing) : base(deserializing) { }316 private MultiObjectiveLinearLinkageProgrammableProblem(StorableConstructorFlag _) : base(_) { } 317 317 private MultiObjectiveLinearLinkageProgrammableProblem(MultiObjectiveLinearLinkageProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 318 318 public MultiObjectiveLinearLinkageProgrammableProblem() … … 332 332 [Item("Combined Encoding Problem (multi-objective)", "Represents a combined encoding multi-objective problem that can be programmed with a script.")] 333 333 [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 1000)] 334 [Storable Class]334 [StorableType("1EE16E10-63DD-41F1-8739-ACE7437D551B")] 335 335 public sealed class MultiObjectiveCombinedEncodingProgrammableProblem : MultiObjectiveProgrammableProblem<CombinedEncoding, CombinedSolution> { 336 336 337 337 [StorableConstructor] 338 private MultiObjectiveCombinedEncodingProgrammableProblem( bool deserializing) : base(deserializing) { }338 private MultiObjectiveCombinedEncodingProgrammableProblem(StorableConstructorFlag _) : base(_) { } 339 339 private MultiObjectiveCombinedEncodingProgrammableProblem(MultiObjectiveCombinedEncodingProgrammableProblem original, Cloner cloner) : base(original, cloner) { } 340 340 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
r16723 r16725 22 22 using System.Collections.Generic; 23 23 using System.Drawing; 24 using HEAL.Attic; 24 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; … … 29 30 using HeuristicLab.Optimization; 30 31 using HeuristicLab.Parameters; 31 using HEAL.Attic;32 32 using HeuristicLab.Scripting; 33 33 … … 72 72 73 73 [StorableConstructor] 74 pr ivateSingleObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { }74 protected SingleObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { } 75 75 public SingleObjectiveProgrammableProblem() 76 76 : base() {
Note: See TracChangeset
for help on using the changeset viewer.