Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/20 16:26:46 (4 years ago)
Author:
abeham
Message:

#2521: adapted knapsack, added base call to symbolic expression tree encoding, changed parameterization operators in base classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblemInstances.cs

    r17567 r17570  
    4545
    4646    public int Dimension {
    47       get => Encoding.Length;
    48       set => Encoding.Length = value;
     47      get => DimensionRefParameter.Value.Value;
     48      set => DimensionRefParameter.Value.Value = value;
    4949    }
    5050
     
    5959      : base(new BinaryVectorEncoding()) {
    6060      Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter));
    61       DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false);
    6261      // TODO: Add and parameterize additional operators,
    6362    }
     
    263262
    264263    public int Dimension {
    265       get => Encoding.Length;
    266       set => Encoding.Length = value;
     264      get => DimensionRefParameter.Value.Value;
     265      set => DimensionRefParameter.Value.Value = value;
    267266    }
    268267
     
    277276      : base(new BinaryVectorEncoding()) {
    278277      Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter));
    279       DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false);
    280278      // TODO: Add and parameterize additional operators,
    281279    }
Note: See TracChangeset for help on using the changeset viewer.