Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/28/14 09:18:30 (10 years ago)
Author:
abeham
Message:

#2174:

  • Renamed methods from e.g. Configuration.AddReal to Configuration.AddRealVector
  • Introduced the variable store into the single-objective problem definition script
  • Created a base class for problem definitions that are derived from in code
  • Created a view for problem definition scripts that also includes the variable store
    • It looks like a C# script view, but unfortunately, the content types are not compatible
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProgrammableProblem/HeuristicLab.Problems.Programmable/3.3/Datastructures/Configuration.cs

    r10856 r11397  
    5454
    5555
    56     public Configuration AddBinary(string name, int length) {
     56    public Configuration AddBinaryVector(string name, int length) {
    5757      if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name");
    5858      Parameters.Add(name, new BinaryParameterConfiguration(length));
     
    6060    }
    6161
    62     public Configuration AddInteger(string name, int length, int min, int max, int? step = null) {
     62    public Configuration AddIntegerVector(string name, int length, int min, int max, int? step = null) {
    6363      if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name");
    6464      Parameters.Add(name, new IntegerParameterConfiguration(length, min, max, step));
     
    6666    }
    6767
    68     public Configuration AddInteger(string name, int length, IList<int> min, IList<int> max, IList<int> step = null) {
     68    public Configuration AddIntegerVector(string name, int length, IList<int> min, IList<int> max, IList<int> step = null) {
    6969      if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name");
    7070      Parameters.Add(name, new IntegerParameterConfiguration(length, min, max, step));
     
    7272    }
    7373
    74     public Configuration AddReal(string name, int length, double min, double max) {
     74    public Configuration AddRealVector(string name, int length, double min, double max) {
    7575      if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name");
    7676      Parameters.Add(name, new RealParameterConfiguration(length, min, max));
     
    7878    }
    7979
    80     public Configuration AddReal(string name, int length, IList<double> min, IList<double> max) {
     80    public Configuration AddRealVector(string name, int length, IList<double> min, IList<double> max) {
    8181      if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name");
    8282      Parameters.Add(name, new RealParameterConfiguration(length, min, max));
Note: See TracChangeset for help on using the changeset viewer.