Changeset 17747 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorProblem.cs
- Timestamp:
- 09/15/20 17:09:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorProblem.cs
r17745 r17747 37 37 [Storable] public IResult<ISingleObjectiveSolutionContext<BinaryVector>> BestSolutionResult { get; private set; } 38 38 39 private ISingleObjectiveSolutionContext<BinaryVector> BestSolution {40 get => BestSolutionResult.Value;41 set => BestSolutionResult.Value = value;42 }43 44 39 public int Dimension { 45 40 get { return DimensionRefParameter.Value.Value; } 46 41 protected set { DimensionRefParameter.Value.Value = value; } 42 } 43 44 protected ISingleObjectiveSolutionContext<BinaryVector> BestSolution { 45 get => BestSolutionResult.Value; 46 set => BestSolutionResult.Value = value; 47 47 } 48 48 … … 66 66 EvaluatorParameter.ReadOnly = true; 67 67 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the binary vector problem.", Encoding.LengthParameter)); 68 Results.Add(BestSolutionResult = new Result<ISingleObjectiveSolutionContext<BinaryVector>>("Best Solution" ));68 Results.Add(BestSolutionResult = new Result<ISingleObjectiveSolutionContext<BinaryVector>>("Best Solution", "The best solution found so far.")); 69 69 70 70 Operators.Add(new HammingSimilarityCalculator());
Note: See TracChangeset
for help on using the changeset viewer.