Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/28/19 17:19:09 (6 years ago)
Author:
abeham
Message:

#2521:

  • Adapt Encodings.ScheduleEncoding to new persistence
  • Adapt Problems.Programmable to new persistence
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  
    2121
    2222using System.Drawing;
     23using HEAL.Attic;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Common.Resources;
     
    2728using HeuristicLab.Optimization;
    2829using HeuristicLab.Parameters;
    29 using HEAL.Attic;
    3030using HeuristicLab.Scripting;
    3131
     
    6161
    6262    [StorableConstructor]
    63     private MultiObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { }
     63    protected MultiObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    6464    protected MultiObjectiveProgrammableProblem(MultiObjectiveProgrammableProblem<TEncoding, TSolution> original, Cloner cloner)
    6565      : base(original, cloner) {
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs

    r16723 r16725  
    2323using System.Linq;
    2424using System.Reflection;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
    2728using HeuristicLab.Optimization;
    28 using HEAL.Attic;
    2929using HeuristicLab.Scripting;
    3030
     
    5555
    5656  [Item("ProblemDefinitionScript", "Script that defines the parameter vector and evaluates the solution for a programmable problem.")]
    57   [StorableClass]
     57  [StorableType("0B3AF22C-4744-4860-BBCF-A92046000847")]
    5858  public abstract class ProblemDefinitionScript<TEncoding, TSolution> : ProblemDefinitionScript, IProblemDefinition<TEncoding, TSolution>
    5959    where TEncoding : class, IEncoding<TSolution>
     
    7979
    8080    [StorableConstructor]
    81     protected ProblemDefinitionScript(bool deserializing) : base(deserializing) { }
     81    protected ProblemDefinitionScript(StorableConstructorFlag _) : base(_) { }
    8282    protected ProblemDefinitionScript(ProblemDefinitionScript<TEncoding, TSolution> original, Cloner cloner)
    8383      : base(original, cloner) {
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/ProgrammableProblemInstances.cs

    r13376 r16725  
    2222#endregion
    2323
     24using HEAL.Attic;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Core;
     
    3132using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    3233using HeuristicLab.Optimization;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3434
    3535namespace HeuristicLab.Problems.Programmable {
     
    3737  [Item("Binary Vector Problem (single-objective)", "Represents a binary vector single-objective problem that can be programmed with a script.")]
    3838  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 100)]
    39   [StorableClass]
     39  [StorableType("FD06DC4B-FB2C-4325-817A-AC030683537B")]
    4040  public sealed class SingleObjectiveBinaryVectorProgrammableProblem : SingleObjectiveProgrammableProblem<BinaryVectorEncoding, BinaryVector> {
    4141
    4242    [StorableConstructor]
    43     private SingleObjectiveBinaryVectorProgrammableProblem(bool deserializing) : base(deserializing) { }
     43    private SingleObjectiveBinaryVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    4444    private SingleObjectiveBinaryVectorProgrammableProblem(SingleObjectiveBinaryVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    4545
     
    6161  [Item("Integer Vector Problem (single-objective)", "Represents an integer vector single-objective problem that can be programmed with a script.")]
    6262  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 101)]
    63   [StorableClass]
     63  [StorableType("650DF07C-886D-48DF-B796-CE8C18471E40")]
    6464  public sealed class SingleObjectiveIntegerVectorProgrammableProblem : SingleObjectiveProgrammableProblem<IntegerVectorEncoding, IntegerVector> {
    6565
    6666    [StorableConstructor]
    67     private SingleObjectiveIntegerVectorProgrammableProblem(bool deserializing) : base(deserializing) { }
     67    private SingleObjectiveIntegerVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    6868    private SingleObjectiveIntegerVectorProgrammableProblem(SingleObjectiveIntegerVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    6969
     
    8484  [Item("Real Vector Problem (single-objective)", "Represents a real vector single-objective problem that can be programmed with a script.")]
    8585  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 102)]
    86   [StorableClass]
     86  [StorableType("FA01E098-D70B-4782-85E0-8DCF9D1F72D3")]
    8787  public sealed class SingleObjectiveRealVectorProgrammableProblem : SingleObjectiveProgrammableProblem<RealVectorEncoding, RealVector> {
    8888
    8989    [StorableConstructor]
    90     private SingleObjectiveRealVectorProgrammableProblem(bool deserializing) : base(deserializing) { }
     90    private SingleObjectiveRealVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    9191    private SingleObjectiveRealVectorProgrammableProblem(SingleObjectiveRealVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    9292
     
    107107  [Item("Permutation Problem (single-objective)", "Represents a permutation single-objective problem that can be programmed with a script.")]
    108108  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 103)]
    109   [StorableClass]
     109  [StorableType("51D851AD-8F12-4C00-A626-CDF785574C07")]
    110110  public sealed class SingleObjectivePermutationProgrammableProblem : SingleObjectiveProgrammableProblem<PermutationEncoding, Permutation> {
    111111
    112112    [StorableConstructor]
    113     private SingleObjectivePermutationProgrammableProblem(bool deserializing) : base(deserializing) { }
     113    private SingleObjectivePermutationProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    114114    private SingleObjectivePermutationProgrammableProblem(SingleObjectivePermutationProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    115115
     
    130130  [Item("Symbolic Expression Tree Problem (single-objective)", "Represents a symbolic expression tree single-objective problem that can be programmed with a script.")]
    131131  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 104)]
    132   [StorableClass]
     132  [StorableType("49EE7342-D54E-42D4-ADC1-0E79599385A2")]
    133133  public sealed class SingleObjectiveSymbolicExpressionTreeProgrammableProblem : SingleObjectiveProgrammableProblem<SymbolicExpressionTreeEncoding, ISymbolicExpressionTree> {
    134134
    135135    [StorableConstructor]
    136     private SingleObjectiveSymbolicExpressionTreeProgrammableProblem(bool deserializing) : base(deserializing) { }
     136    private SingleObjectiveSymbolicExpressionTreeProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    137137    private SingleObjectiveSymbolicExpressionTreeProgrammableProblem(SingleObjectiveSymbolicExpressionTreeProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    138138    public SingleObjectiveSymbolicExpressionTreeProgrammableProblem()
     
    152152  [Item("Linear Linkage Problem (single-objective)", "Represents a linear linkage single-objective problem that can be programmed with a script.")]
    153153  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 105)]
    154   [StorableClass]
     154  [StorableType("C6D025AC-C09A-49F1-BB2C-F40A16687E95")]
    155155  public sealed class SingleObjectiveLinearLinkageProgrammableProblem : SingleObjectiveProgrammableProblem<LinearLinkageEncoding, LinearLinkage> {
    156156
    157157    [StorableConstructor]
    158     private SingleObjectiveLinearLinkageProgrammableProblem(bool deserializing) : base(deserializing) { }
     158    private SingleObjectiveLinearLinkageProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    159159    private SingleObjectiveLinearLinkageProgrammableProblem(SingleObjectiveLinearLinkageProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    160160    public SingleObjectiveLinearLinkageProgrammableProblem()
     
    174174  [Item("Combined Encoding Problem (single-objective)", "Represents a combined encoding single-objective problem that can be programmed with a script.")]
    175175  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsSingleObjective, Priority = 1000)]
    176   [StorableClass]
     176  [StorableType("BF5186A9-8695-484D-888D-0DAE0F344AAD")]
    177177  public sealed class SingleObjectiveCombinedEncodingProgrammableProblem : SingleObjectiveProgrammableProblem<CombinedEncoding, CombinedSolution> {
    178178
    179179    [StorableConstructor]
    180     private SingleObjectiveCombinedEncodingProgrammableProblem(bool deserializing) : base(deserializing) { }
     180    private SingleObjectiveCombinedEncodingProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    181181    private SingleObjectiveCombinedEncodingProgrammableProblem(SingleObjectiveCombinedEncodingProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    182182
     
    196196  [Item("Binary Vector Problem (multi-objective)", "Represents a binary vector multi-objective problem that can be programmed with a script.")]
    197197  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 100)]
    198   [StorableClass]
     198  [StorableType("750F0CF5-2779-49A7-BC32-EA3C593B50DE")]
    199199  public sealed class MultiObjectiveBinaryVectorProgrammableProblem : MultiObjectiveProgrammableProblem<BinaryVectorEncoding, BinaryVector> {
    200200
    201201    [StorableConstructor]
    202     private MultiObjectiveBinaryVectorProgrammableProblem(bool deserializing) : base(deserializing) { }
     202    private MultiObjectiveBinaryVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    203203    private MultiObjectiveBinaryVectorProgrammableProblem(MultiObjectiveBinaryVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    204204
     
    220220  [Item("Integer Vector Problem (multi-objective)", "Represents an integer vector multi-objective problem that can be programmed with a script.")]
    221221  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 101)]
    222   [StorableClass]
     222  [StorableType("442F242E-29E6-416A-8CA3-C216300A1FA5")]
    223223  public sealed class MultiObjectiveIntegerVectorProgrammableProblem : MultiObjectiveProgrammableProblem<IntegerVectorEncoding, IntegerVector> {
    224224
    225225    [StorableConstructor]
    226     private MultiObjectiveIntegerVectorProgrammableProblem(bool deserializing) : base(deserializing) { }
     226    private MultiObjectiveIntegerVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    227227    private MultiObjectiveIntegerVectorProgrammableProblem(MultiObjectiveIntegerVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    228228
     
    243243  [Item("Real Vector Problem (multi-objective)", "Represents a real vector multi-objective problem that can be programmed with a script.")]
    244244  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 102)]
    245   [StorableClass]
     245  [StorableType("2DEFF24A-755A-4E22-8DD8-B791C0BCC832")]
    246246  public sealed class MultiObjectiveRealVectorProgrammableProblem : MultiObjectiveProgrammableProblem<RealVectorEncoding, RealVector> {
    247247
    248248    [StorableConstructor]
    249     private MultiObjectiveRealVectorProgrammableProblem(bool deserializing) : base(deserializing) { }
     249    private MultiObjectiveRealVectorProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    250250    private MultiObjectiveRealVectorProgrammableProblem(MultiObjectiveRealVectorProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    251251
     
    266266  [Item("Permutation Problem (multi-objective)", "Represents a permutation multi-objective problem that can be programmed with a script.")]
    267267  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 103)]
    268   [StorableClass]
     268  [StorableType("23FC641C-770B-49A2-AA3C-5862F4A55F94")]
    269269  public sealed class MultiObjectivePermutationProgrammableProblem : MultiObjectiveProgrammableProblem<PermutationEncoding, Permutation> {
    270270
    271271    [StorableConstructor]
    272     private MultiObjectivePermutationProgrammableProblem(bool deserializing) : base(deserializing) { }
     272    private MultiObjectivePermutationProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    273273    private MultiObjectivePermutationProgrammableProblem(MultiObjectivePermutationProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    274274    public MultiObjectivePermutationProgrammableProblem()
     
    288288  [Item("Symbolic Expression Tree Programmable Problem (multi-objective)", "Represents a symbolic expression tree multi-objective problem that can be programmed with a script.")]
    289289  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 104)]
    290   [StorableClass]
     290  [StorableType("FAEA5ED6-EA8F-4EA2-B84C-7A1B4491292A")]
    291291  public sealed class MultiObjectiveSymbolicExpressionTreeProgrammableProblem : MultiObjectiveProgrammableProblem<SymbolicExpressionTreeEncoding, ISymbolicExpressionTree> {
    292292
    293293    [StorableConstructor]
    294     private MultiObjectiveSymbolicExpressionTreeProgrammableProblem(bool deserializing) : base(deserializing) { }
     294    private MultiObjectiveSymbolicExpressionTreeProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    295295    private MultiObjectiveSymbolicExpressionTreeProgrammableProblem(MultiObjectiveSymbolicExpressionTreeProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    296296    public MultiObjectiveSymbolicExpressionTreeProgrammableProblem()
     
    310310  [Item("Linear Linkage Programmable Problem (multi-objective)", "Represents a linear linkage multi-objective problem that can be programmed with a script.")]
    311311  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 105)]
    312   [StorableClass]
     312  [StorableType("207E3110-4937-4A95-9331-39880739D7CF")]
    313313  public sealed class MultiObjectiveLinearLinkageProgrammableProblem : MultiObjectiveProgrammableProblem<LinearLinkageEncoding, LinearLinkage> {
    314314
    315315    [StorableConstructor]
    316     private MultiObjectiveLinearLinkageProgrammableProblem(bool deserializing) : base(deserializing) { }
     316    private MultiObjectiveLinearLinkageProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    317317    private MultiObjectiveLinearLinkageProgrammableProblem(MultiObjectiveLinearLinkageProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    318318    public MultiObjectiveLinearLinkageProgrammableProblem()
     
    332332  [Item("Combined Encoding Problem (multi-objective)", "Represents a combined encoding multi-objective problem that can be programmed with a script.")]
    333333  [Creatable(CreatableAttribute.Categories.ProgrammableProblemsMultiObjective, Priority = 1000)]
    334   [StorableClass]
     334  [StorableType("1EE16E10-63DD-41F1-8739-ACE7437D551B")]
    335335  public sealed class MultiObjectiveCombinedEncodingProgrammableProblem : MultiObjectiveProgrammableProblem<CombinedEncoding, CombinedSolution> {
    336336
    337337    [StorableConstructor]
    338     private MultiObjectiveCombinedEncodingProgrammableProblem(bool deserializing) : base(deserializing) { }
     338    private MultiObjectiveCombinedEncodingProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    339339    private MultiObjectiveCombinedEncodingProgrammableProblem(MultiObjectiveCombinedEncodingProgrammableProblem original, Cloner cloner) : base(original, cloner) { }
    340340
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs

    r16723 r16725  
    2222using System.Collections.Generic;
    2323using System.Drawing;
     24using HEAL.Attic;
    2425using HeuristicLab.Analysis;
    2526using HeuristicLab.Common;
     
    2930using HeuristicLab.Optimization;
    3031using HeuristicLab.Parameters;
    31 using HEAL.Attic;
    3232using HeuristicLab.Scripting;
    3333
     
    7272
    7373    [StorableConstructor]
    74     private SingleObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { }
     74    protected SingleObjectiveProgrammableProblem(StorableConstructorFlag _) : base(_) { }
    7575    public SingleObjectiveProgrammableProblem()
    7676      : base() {
Note: See TracChangeset for help on using the changeset viewer.