Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/10 17:03:29 (15 years ago)
Author:
abeham
Message:

Updated real vector to check bounds after each crossover and manipulation #890

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r3170 r3182  
    226226        Bounds[e.Value, 0] = Bounds[e.Value, 1] - 0.1;
    227227    }
     228    private void BoundsParameter_NameChanged(object sender, EventArgs e) {
     229      ParameterizeOperators();
     230    }
    228231    #endregion
    229232
     
    234237      ProblemSizeParameter.ValueChanged += new EventHandler(ProblemSizeParameter_ValueChanged);
    235238      ProblemSize.ValueChanged += new EventHandler(ProblemSize_ValueChanged);
     239      BoundsParameter.NameChanged += new EventHandler(BoundsParameter_NameChanged);
    236240      BoundsParameter.ValueChanged += new EventHandler(BoundsParameter_ValueChanged);
    237241      Bounds.ToStringChanged += new EventHandler(Bounds_ToStringChanged);
     
    243247      VisualizerParameter.ValueChanged += new EventHandler(VisualizerParameter_ValueChanged);
    244248    }
    245 
    246249    private void InitializeOperators() {
    247250      operators = new List<IRealVectorOperator>();
     
    280283        op.ParentsParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName;
    281284        op.ChildParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName;
     285        op.BoundsParameter.ActualName = BoundsParameter.Name;
    282286      }
    283287      foreach (IRealVectorManipulator op in Operators.OfType<IRealVectorManipulator>()) {
    284288        op.RealVectorParameter.ActualName = SolutionCreator.RealVectorParameter.ActualName;
     289        op.BoundsParameter.ActualName = BoundsParameter.Name;
    285290      }
    286291      /*foreach (IPermutationMoveOperator op in Operators.OfType<IPermutationMoveOperator>()) {
Note: See TracChangeset for help on using the changeset viewer.