Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/16/15 20:14:52 (10 years ago)
Author:
pfleck
Message:

#2269

  • merged trunk after 3.3.11 release
  • updated copyright and plugin version in ALPS plugin
  • removed old ALPS samples based on an userdefined alg
Location:
branches/ALPS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS

  • branches/ALPS/HeuristicLab.Optimization

  • branches/ALPS/HeuristicLab.Optimization/3.3/BasicProblems/BasicProblem.cs

    r11970 r12018  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    6767      Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any."));
    6868      oldEncoding = Encoding;
     69      if(Encoding != null) Parameterize();
    6970      RegisterEvents();
    7071    }
     
    9192
    9293    protected virtual void OnEncodingChanged() {
     94      Parameterize();
     95
     96      OnOperatorsChanged();
     97      OnReset();
     98    }
     99
     100    private void Parameterize() {
    93101      if (oldEncoding != null) {
    94102        AdaptEncodingOperators(oldEncoding, Encoding);
     
    108116      Parameters.Remove(SolutionCreatorParameter);
    109117      Parameters.Add(solutionCreatorParam);
    110 
    111       //TODO register solution creator changed event, change access modifier to private
    112       //((IValueParameter)solutionCreatorParam).ValueChanged += SolutionCreatorParameter_ValueChanged;     
     118      ((IValueParameter)solutionCreatorParam).ValueChanged += SolutionCreatorParameter_ValueChanged;
    113119
    114120      var multiEncoding = Encoding as MultiEncoding;
    115121      if (multiEncoding != null) multiEncoding.EncodingsChanged += MultiEncodingOnEncodingsChanged;
    116 
    117       OnOperatorsChanged();
    118       OnReset();
    119122    }
    120123
Note: See TracChangeset for help on using the changeset viewer.