Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/04/20 18:16:58 (4 years ago)
Author:
abeham
Message:

#2521: refactoring in progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r17571 r17587  
    7070
    7171      BestKnownQuality = TestFunction.BestKnownQuality;
    72 
     72      Bounds = (DoubleMatrix)TestFunction.Bounds.Clone();
     73      Dimension = TestFunction.MinimumProblemSize;
     74      BestKnownSolutionParameter.Value = TestFunction.GetBestKnownSolution(Dimension);
    7375      InitializeOperators();
    7476      RegisterEventHandlers();
     
    118120                                                           TestFunctionParameter.Value) {
    119121          BestKnownRealVector = bestKnownSolution,
    120           Bounds = BoundsParameter.Value
     122          Bounds = BoundsRefParameter.Value
    121123        };
    122124        results.Add(new Result("Best Solution", solution));
     
    200202        op.RealVectorParameter.ActualName = ((IRealVectorSolutionOperator)Encoding.SolutionCreator).RealVectorParameter.ActualName;
    201203        op.RealVectorParameter.Hidden = true;
    202         op.BoundsParameter.ActualName = BoundsParameter.Name;
     204        op.BoundsParameter.ActualName = BoundsRefParameter.Name;
    203205        op.BoundsParameter.Hidden = true;
    204206      }
     
    207209        op.RealVectorParameter.ActualName = ((IRealVectorSolutionOperator)Encoding.SolutionCreator).RealVectorParameter.ActualName;
    208210        op.RealVectorParameter.Hidden = true;
    209         op.BoundsParameter.ActualName = BoundsParameter.Name;
     211        op.BoundsParameter.ActualName = BoundsRefParameter.Name;
    210212        op.BoundsParameter.Hidden = true;
    211213      }
Note: See TracChangeset for help on using the changeset viewer.