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

    r11393 r11397  
    3030  [Item("Single-objective Problem Definition", "This definition can be dynamically created through code and assigned to the problem.")]
    3131  public class SingleObjectiveProblemDefinition : ISingleObjectiveProblemDefinitionHost, ISingleObjectiveProblemDefinition {
    32 
    3332    private bool isMaximizationProblem;
    3433    public bool IsMaximizationProblem {
     
    114113
    115114    #region Problem definition explicit interface implementations
     115    dynamic IProblemDefinition.vars { get; set; }
     116
     117    void IProblemDefinition.Initialize() {
     118
     119    }
     120
     121    Configuration IProblemDefinition.GetConfiguration() {
     122      return Configuration();
     123    }
     124
    116125    bool ISingleObjectiveProblemDefinition.IsMaximizationProblem {
    117126      get { return IsMaximizationProblem; }
     
    128137    IEnumerable<ParameterVector> ISingleObjectiveProblemDefinition.GetNeighbors(IRandom random, ParameterVector vector) {
    129138      return Neighbors(random, vector);
    130     }
    131 
    132     Configuration IProblemDefinition.GetConfiguration() {
    133       return Configuration();
    134139    }
    135140    #endregion
Note: See TracChangeset for help on using the changeset viewer.