Changeset 5343
- Timestamp:
- 01/21/11 02:23:56 (14 years ago)
- 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 12 12 <AssemblyName>HeuristicLab.Optimization-3.3</AssemblyName> 13 13 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 14 <TargetFrameworkProfile></TargetFrameworkProfile> 14 <TargetFrameworkProfile> 15 </TargetFrameworkProfile> 15 16 <FileAlignment>512</FileAlignment> 16 17 <SignAssembly>true</SignAssembly> … … 117 118 <Compile Include="Interfaces\IRealVectorDecoder.cs" /> 118 119 <Compile Include="Interfaces\IRealVectorEncoder.cs" /> 120 <Compile Include="MultiObjectiveProblem.cs" /> 119 121 <Compile Include="Problem.cs" /> 120 122 <Compile Include="RunCollectionConstraints\RunCollectionComparisonConstraint.cs" /> -
trunk/sources/HeuristicLab.Optimization/3.3/SingleObjectiveProblem.cs
r4722 r5343 27 27 28 28 namespace 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.")] 30 30 [StorableClass] 31 31 public abstract class SingleObjectiveProblem<T, U> : Problem<T, U>, ISingleObjectiveProblem … … 37 37 [StorableConstructor] 38 38 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) { } 43 40 protected SingleObjectiveProblem() 44 41 : base() { … … 47 44 } 48 45 49 50 #region properties51 ISingleObjectiveEvaluator ISingleObjectiveProblem.Evaluator { get { return Evaluator; } }52 53 public BoolValue Maximization {54 get { return MaximizationParameter.Value; }55 protected set { MaximizationParameter.Value = value; }56 }57 46 public ValueParameter<BoolValue> MaximizationParameter { 58 47 get { return (ValueParameter<BoolValue>)Parameters[MaximizationParameterName]; } … … 61 50 get { return MaximizationParameter; } 62 51 } 52 public BoolValue Maximization { 53 get { return MaximizationParameter.Value; } 54 protected set { MaximizationParameter.Value = value; } 55 } 63 56 64 public DoubleValue BestKnownQuality {65 get { return BestKnownQualityParameter.Value; }66 protected set { BestKnownQualityParameter.Value = value; }67 }68 57 public ValueParameter<DoubleValue> BestKnownQualityParameter { 69 58 get { return (ValueParameter<DoubleValue>)Parameters[BestKnownQualityParameterName]; } … … 72 61 get { return BestKnownQualityParameter; } 73 62 } 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 } 75 71 } 76 72 }
Note: See TracChangeset
for help on using the changeset viewer.