Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/20 14:41:43 (4 years ago)
Author:
abeham
Message:

#2521: work in progress

Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4
Files:
2 edited

Legend:

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

    r17544 r17567  
    5959      : base(new BinaryVectorEncoding()) {
    6060      Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter));
    61       DimensionRefParameter.ForceValue(new IntValue(Dimension, @readonly: false));
     61      DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false);
    6262      // TODO: Add and parameterize additional operators,
    6363    }
     
    277277      : base(new BinaryVectorEncoding()) {
    278278      Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter));
    279       DimensionRefParameter.ForceValue(new IntValue(Dimension, @readonly: false));
     279      DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false);
    280280      // TODO: Add and parameterize additional operators,
    281281    }
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/SingleObjectiveExternalEvaluationProblem.cs

    r17546 r17567  
    9393    public ExternalEvaluationProblem(TEncoding encoding)
    9494      : base(encoding) {
    95       MaximizationParameter.ForceValue(new BoolValue()); // is a read-only bool value in base class
     95      MaximizationParameter.Value = new BoolValue(); // is a read-only bool value in base class TODO: change to set ReadOnly false
    9696      Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions."));
    9797      Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() }));
Note: See TracChangeset for help on using the changeset viewer.