Changeset 8085 for branches/GP-MoveOperators/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealingMainLoop.cs
- Timestamp:
- 06/21/12 18:02:33 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GP-MoveOperators/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealingMainLoop.cs
r7259 r8085 51 51 get { return (LookupParameter<DoubleValue>)Parameters["MoveQuality"]; } 52 52 } 53 public ILookupParameter<DoubleValue> TemperatureParameter { 54 get { return (ILookupParameter<DoubleValue>)Parameters["Temperature"]; } 55 } 53 56 public ValueLookupParameter<DoubleValue> StartTemperatureParameter { 54 57 get { return (ValueLookupParameter<DoubleValue>)Parameters["StartTemperature"]; } … … 109 112 Parameters.Add(new ValueLookupParameter<DoubleValue>("BestKnownQuality", "The best known quality value found so far.")); 110 113 Parameters.Add(new LookupParameter<DoubleValue>("MoveQuality", "The value which represents the quality of a move.")); 114 Parameters.Add(new LookupParameter<DoubleValue>("Temperature", "The current temperature.")); 111 115 Parameters.Add(new ValueLookupParameter<DoubleValue>("StartTemperature", "The initial temperature.")); 112 116 Parameters.Add(new ValueLookupParameter<DoubleValue>("EndTemperature", "The end temperature.")); … … 126 130 127 131 #region Create operators 128 VariableCreator variableCreator = new VariableCreator();132 Assigner temperatureInitializer = new Assigner(); 129 133 ResultsCollector resultsCollector1 = new ResultsCollector(); 130 134 SubScopesProcessor subScopesProcessor0 = new SubScopesProcessor(); … … 148 152 ConditionalBranch iterationsTermination = new ConditionalBranch(); 149 153 150 variableCreator.CollectedValues.Add(new ValueParameter<DoubleValue>("Temperature", new DoubleValue(double.MaxValue))); 154 temperatureInitializer.LeftSideParameter.ActualName = TemperatureParameter.ActualName; 155 temperatureInitializer.RightSideParameter.ActualName = StartTemperatureParameter.Name; 151 156 152 157 resultsCollector1.CollectedValues.Add(new LookupParameter<IntValue>(IterationsParameter.Name)); 153 resultsCollector1.CollectedValues.Add(new LookupParameter<DoubleValue>("Temperature"));154 158 resultsCollector1.ResultsParameter.ActualName = ResultsParameter.Name; 155 159 … … 199 203 200 204 #region Create operator graph 201 OperatorGraph.InitialOperator = variableCreator;202 variableCreator.Successor = resultsCollector1;205 OperatorGraph.InitialOperator = temperatureInitializer; 206 temperatureInitializer.Successor = resultsCollector1; 203 207 resultsCollector1.Successor = subScopesProcessor0; 204 208 subScopesProcessor0.Operators.Add(analyzer1); … … 237 241 if (!Parameters.ContainsKey("Iterations")) 238 242 Parameters.Add(new LookupParameter<IntValue>("Iterations", "The number of iterations.")); 243 if (!Parameters.ContainsKey("Temperature")) 244 Parameters.Add(new LookupParameter<DoubleValue>("Temperature", "The current temperature.")); 239 245 #endregion 240 246 }
Note: See TracChangeset
for help on using the changeset viewer.