- Timestamp:
- 07/29/15 13:07:08 (9 years ago)
- Location:
- branches/TerminationCriteria/HeuristicLab.Optimization
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/TerminationCriteria/HeuristicLab.Optimization
- Property svn:mergeinfo changed
-
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/BasicProblems/Operators/MultiObjectiveEvaluator.cs
r12012 r12809 31 31 [Item("Multi-objective Evaluator", "Calls the Evaluate method of the problem definition and writes the return value into the scope.")] 32 32 [StorableClass] 33 public class MultiObjectiveEvaluator : SingleSuccessorOperator, IMultiObjectiveEvaluationOperator, IStochasticOperator {33 public class MultiObjectiveEvaluator : InstrumentedOperator, IMultiObjectiveEvaluationOperator, IStochasticOperator { 34 34 35 35 public ILookupParameter<IRandom> RandomParameter { … … 60 60 } 61 61 62 public override IOperation Apply() {62 public override IOperation InstrumentedApply() { 63 63 var random = RandomParameter.ActualValue; 64 64 var encoding = EncodingParameter.ActualValue; 65 65 var individual = encoding.GetIndividual(ExecutionContext.Scope); 66 66 QualitiesParameter.ActualValue = new DoubleArray(EvaluateFunc(individual, random)); 67 return base. Apply();67 return base.InstrumentedApply(); 68 68 } 69 69 } -
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/BasicProblems/Operators/SingleObjectiveEvaluator.cs
r12012 r12809 31 31 [Item("Single-objective Evaluator", "Calls the script's Evaluate method to get the quality value of the parameter vector.")] 32 32 [StorableClass] 33 public sealed class SingleObjectiveEvaluator : SingleSuccessorOperator, ISingleObjectiveEvaluationOperator, IStochasticOperator {33 public sealed class SingleObjectiveEvaluator : InstrumentedOperator, ISingleObjectiveEvaluationOperator, IStochasticOperator { 34 34 35 35 public ILookupParameter<IRandom> RandomParameter { … … 58 58 public override IDeepCloneable Clone(Cloner cloner) { return new SingleObjectiveEvaluator(this, cloner); } 59 59 60 public override IOperation Apply() {60 public override IOperation InstrumentedApply() { 61 61 var random = RandomParameter.ActualValue; 62 62 var encoding = EncodingParameter.ActualValue; 63 63 var individual = encoding.GetIndividual(ExecutionContext.Scope); 64 64 QualityParameter.ActualValue = new DoubleValue(EvaluateFunc(individual, random)); 65 return base. Apply();65 return base.InstrumentedApply(); 66 66 } 67 67 } -
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/HeuristicLab.Optimization-3.3.csproj
r12529 r12809 194 194 <Compile Include="MetaOptimizers\BatchRun.cs" /> 195 195 <Compile Include="MetaOptimizers\Experiment.cs" /> 196 <Compile Include="MetaOptimizers\TimeLimitRun.cs" /> 196 197 <Compile Include="RunCollectionModification\RunCollectionRunRemover.cs" /> 197 198 <Compile Include="Plugin.cs" /> -
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/Plugin.cs.frame
r12012 r12809 26 26 /// Plugin class for HeuristicLab.Optimization plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Optimization", "3.3.1 1.$WCREV$")]28 [Plugin("HeuristicLab.Optimization", "3.3.12.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Optimization-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/Problems/SingleObjectiveHeuristicOptimizationProblem.cs
- Property svn:mergeinfo changed
-
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/Properties/AssemblyInfo.cs.frame
r12012 r12809 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3.1 1.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.12.$WCREV$")] -
branches/TerminationCriteria/HeuristicLab.Optimization/3.3/RunCollection.cs
r12504 r12809 445 445 EventHandler<EventArgs<int, int>> handler = ItemChanged; 446 446 if (handler != null) handler(this, new EventArgs<int, int>(rowIndex, columnIndex)); 447 OnToStringChanged();448 447 } 449 448 public event EventHandler Reset; … … 451 450 EventHandler handler = Reset; 452 451 if (handler != null) handler(this, EventArgs.Empty); 453 OnToStringChanged();454 452 } 455 453 public event EventHandler ColumnsChanged; … … 485 483 #region Filtering 486 484 private void UpdateFiltering(bool reset) { 485 var oldUpateRuns = UpdateOfRunsInProgress; 487 486 UpdateOfRunsInProgress = true; 488 487 if (reset) … … 490 489 foreach (IRunCollectionConstraint constraint in this.constraints) 491 490 constraint.Check(); 492 UpdateOfRunsInProgress = false;491 UpdateOfRunsInProgress = oldUpateRuns; 493 492 } 494 493 … … 552 551 #region Modification 553 552 public void Modify() { 553 var oldUpateRuns = UpdateOfRunsInProgress; 554 554 UpdateOfRunsInProgress = true; 555 555 var runs = this.ToList(); … … 566 566 } 567 567 } 568 UpdateOfRunsInProgress = false;568 UpdateOfRunsInProgress = oldUpateRuns; 569 569 } 570 570
Note: See TracChangeset
for help on using the changeset viewer.