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/ProgrammableProblemScript.cs

    r10754 r10856  
    4040    public ProgrammableProblemScript() { }
    4141
    42     private volatile ProblemBase instance;
     42    private volatile IProblemDefinition instance;
    4343    private object locker = new object();
    44     public ProblemBase Instance {
     44    public IProblemDefinition Instance {
    4545      get {
    4646        SuppressEvents = true;
     
    7373      var types = assembly.GetTypes();
    7474      try {
    75         Instance = (ProblemBase)Activator.CreateInstance(types.First(x => typeof(ProblemBase).IsAssignableFrom(x)));
     75        Instance = (IProblemDefinition)Activator.CreateInstance(types.First(x => typeof(IProblemDefinition).IsAssignableFrom(x)));
    7676      } catch {
    7777        Instance = null;
Note: See TracChangeset for help on using the changeset viewer.