Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/15/14 15:06:57 (10 years ago)
Author:
abeham
Message:

#2174: Worked on programmable problem

  • Changed ProblemBase to IProblemDefinition and SingleObjectiveProblemBase to ISingleObjectiveProblemDefinition
  • Derived ParameterVectorCreater, -Crossover, and -Manipulator from MultiOperator<> instead of InstrumentedOperator
  • Split the megamoth ScriptOnInstanceChanged to multiple methods dealing with single-vector and multi-vector encodings separately, it's still a lot of tedious code
  • Removed maximization from Configuration again (would not be consistent with multi-objective problems)
File:
1 edited

Legend:

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

    r10855 r10856  
    3434    public Dictionary<string, ParameterConfiguration> Parameters { get; protected set; }
    3535
    36     [Storable]
    37     public bool Maximization { get; protected set; }
    38 
    3936    [StorableConstructor]
    4037    protected Configuration(bool deserializing) : base(deserializing) { }
     
    4744        }
    4845      }
    49       Maximization = original.Maximization;
    5046    }
    5147    public Configuration() {
     
    8884    }
    8985
    90     public Configuration AddPermutation(string name, PermutationTypes type, int length) {
     86    public Configuration AddPermutation(string name, int length, PermutationTypes type) {
    9187      if (Parameters.ContainsKey(name)) throw new ArgumentException("name must be unique", "name");
    9288      Parameters.Add(name, new PermutationParameterConfiguration(length, type));
    9389      return this;
    9490    }
    95 
    96     public Configuration SetMaximization(bool maximization) {
    97       Maximization = maximization;
    98       return this;
    99     }
    10091  }
    10192}
Note: See TracChangeset for help on using the changeset viewer.