Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/15 18:14:48 (10 years ago)
Author:
abeham
Message:

#2174:

  • Branched ExternalEvaluation
    • Changed to use SingleObjectiveBasicProblem
    • Increased minor version number
  • Created view for MultiEncoding
  • Created dialog to construct encodings in the GUI

Setting up an external evaluation problem in HeuristicLab has finally become simple.

Location:
branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/BinaryVectorEncoding.cs

    r11885 r11892  
    7373
    7474    public BinaryVectorEncoding() : this("BinaryVector", 10) { }
     75    public BinaryVectorEncoding(string name) : this(name, 10) { }
    7576    public BinaryVectorEncoding(int length) : this("BinaryVector", length) { }
    7677    public BinaryVectorEncoding(string name, int length)
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/IntegerVectorEncoding.cs

    r11885 r11892  
    9696
    9797    public IntegerVectorEncoding() : this("IntegerVector", 10) { }
     98    public IntegerVectorEncoding(string name) : this(name, 10) { }
    9899    public IntegerVectorEncoding(int length) : this("integerVector", length) { }
    99100    public IntegerVectorEncoding(string name, int length, int min = int.MinValue, int max = int.MaxValue, int? step = null)
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/MultiEncoding.cs

    r11797 r11892  
    4040    }
    4141
    42 
    4342    [StorableConstructor]
    4443    private MultiEncoding(bool deserializing)
     
    4645      encodings = new List<IEncoding>();
    4746    }
    48 
    4947    public override IDeepCloneable Clone(Cloner cloner) { return new MultiEncoding(this, cloner); }
    5048    private MultiEncoding(MultiEncoding original, Cloner cloner)
     
    7573        @operator.AddEncoding(encoding);
    7674      }
     75      OnEncodingsChanged();
    7776      return this;
    7877    }
     
    8483        @operator.RemoveEncoding(encoding);
    8584      }
     85      OnEncodingsChanged();
    8686      return success;
    8787    }
     
    8989    public override void ConfigureOperators(IEnumerable<IOperator> operators) {
    9090    }
     91
     92    public event EventHandler EncodingsChanged;
     93    private void OnEncodingsChanged() {
     94      var handler = EncodingsChanged;
     95      if (handler != null) handler(this, EventArgs.Empty);
     96    }
    9197  }
    9298}
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/PermutationEncoding.cs

    r11773 r11892  
    9898
    9999    public PermutationEncoding() : this("Permutation", 10, PermutationTypes.Absolute) { }
     100    public PermutationEncoding(string name) : this(name, 10, PermutationTypes.Absolute) { }
    100101    public PermutationEncoding(int length) : this("Permuration", length, PermutationTypes.Absolute) { }
    101102    public PermutationEncoding(string name, int length, PermutationTypes type)
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Encodings/RealVectorEncoding.cs

    r11885 r11892  
    9494
    9595    public RealVectorEncoding() : this("RealVector", 10) { }
     96    public RealVectorEncoding(string name) : this(name, 10) { }
    9697    public RealVectorEncoding(int length) : this("RealVector", length) { }
    9798    public RealVectorEncoding(string name, int length, double min = double.MinValue, double max = double.MaxValue)
Note: See TracChangeset for help on using the changeset viewer.