Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5343


Ignore:
Timestamp:
01/21/11 02:23:56 (14 years ago)
Author:
swagner
Message:

Added base class for multi-objective problems MultiObjectiveProblem<T, U> (#1389)

Location:
trunk/sources/HeuristicLab.Optimization/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj

    r5163 r5343  
    1212    <AssemblyName>HeuristicLab.Optimization-3.3</AssemblyName>
    1313    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    14     <TargetFrameworkProfile></TargetFrameworkProfile>
     14    <TargetFrameworkProfile>
     15    </TargetFrameworkProfile>
    1516    <FileAlignment>512</FileAlignment>
    1617    <SignAssembly>true</SignAssembly>
     
    117118    <Compile Include="Interfaces\IRealVectorDecoder.cs" />
    118119    <Compile Include="Interfaces\IRealVectorEncoder.cs" />
     120    <Compile Include="MultiObjectiveProblem.cs" />
    119121    <Compile Include="Problem.cs" />
    120122    <Compile Include="RunCollectionConstraints\RunCollectionComparisonConstraint.cs" />
  • trunk/sources/HeuristicLab.Optimization/3.3/SingleObjectiveProblem.cs

    r4722 r5343  
    2727
    2828namespace HeuristicLab.Optimization {
    29   [Item("Single Objective Problem", "Represents the base class for a single objective problem.")]
     29  [Item("Single-Objective Problem", "A base class for single-objective problems.")]
    3030  [StorableClass]
    3131  public abstract class SingleObjectiveProblem<T, U> : Problem<T, U>, ISingleObjectiveProblem
     
    3737    [StorableConstructor]
    3838    protected SingleObjectiveProblem(bool deserializing) : base(deserializing) { }
    39     protected SingleObjectiveProblem(SingleObjectiveProblem<T, U> original, Cloner cloner)
    40       : base(original, cloner) {
    41     }
    42 
     39    protected SingleObjectiveProblem(SingleObjectiveProblem<T, U> original, Cloner cloner) : base(original, cloner) { }
    4340    protected SingleObjectiveProblem()
    4441      : base() {
     
    4744    }
    4845
    49 
    50     #region properties
    51     ISingleObjectiveEvaluator ISingleObjectiveProblem.Evaluator { get { return Evaluator; } }
    52 
    53     public BoolValue Maximization {
    54       get { return MaximizationParameter.Value; }
    55       protected set { MaximizationParameter.Value = value; }
    56     }
    5746    public ValueParameter<BoolValue> MaximizationParameter {
    5847      get { return (ValueParameter<BoolValue>)Parameters[MaximizationParameterName]; }
     
    6150      get { return MaximizationParameter; }
    6251    }
     52    public BoolValue Maximization {
     53      get { return MaximizationParameter.Value; }
     54      protected set { MaximizationParameter.Value = value; }
     55    }
    6356
    64     public DoubleValue BestKnownQuality {
    65       get { return BestKnownQualityParameter.Value; }
    66       protected set { BestKnownQualityParameter.Value = value; }
    67     }
    6857    public ValueParameter<DoubleValue> BestKnownQualityParameter {
    6958      get { return (ValueParameter<DoubleValue>)Parameters[BestKnownQualityParameterName]; }
     
    7261      get { return BestKnownQualityParameter; }
    7362    }
    74     #endregion
     63    public DoubleValue BestKnownQuality {
     64      get { return BestKnownQualityParameter.Value; }
     65      protected set { BestKnownQualityParameter.Value = value; }
     66    }
     67
     68    ISingleObjectiveEvaluator ISingleObjectiveProblem.Evaluator {
     69      get { return Evaluator; }
     70    }
    7571  }
    7672}
Note: See TracChangeset for help on using the changeset viewer.