Changeset 14702 for branches/jschiess
- Timestamp:
- 02/24/17 18:48:57 (8 years ago)
- Location:
- branches/jschiess/HeuristicLab.Algorithms.SimulatedAnnealing/3.3
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/jschiess/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/ConsecutiveRejectionReheatingOperator.cs
r14555 r14702 16 16 namespace HeuristicLab.Algorithms.SimulatedAnnealing 17 17 { 18 [Item("ConsecutiveRejectionReheatingOperator", "The operator reheats the temperature by x when nconsecutive solutions are rejected.")]18 [Item("ConsecutiveRejectionReheatingOperator", "The operator reheats the temperature by X when N consecutive solutions are rejected.")] 19 19 [StorableClass] 20 20 public class ConsecutiveRejectionReheatingOperator : SingleSuccessorOperator, IReheatingOperator -
branches/jschiess/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/SimulatedAnnealingMainLoop.cs
r14555 r14702 59 59 private const string TerminateName = "Terminate"; 60 60 private const string AcceptanceMemoryName = "AcceptanceMemory"; 61 private const string ReheatCountName = "ReheatCount"; 61 62 #endregion 62 63 … … 217 218 variableCreator.Name = "Initialize Memory"; 218 219 variableCreator.CollectedValues.Add(new ValueParameter<ItemList<BoolValue>>(AcceptanceMemoryName, new ItemList<BoolValue>())); 220 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>(ReheatCountName, new IntValue(0))); 219 221 220 222 analyzer1.Name = "Analyzer"; … … 241 243 moveMaker.OperatorParameter.ActualName = MoveMakerParameter.Name; 242 244 243 temperatureController.AnnealingOperatorParameter.ActualName = AnnealingOperatorParameter.Name; 244 temperatureController.AcceptanceMemoryParameter.ActualName = AcceptanceMemoryName; 245 temperatureController.CoolingParameter.ActualName = CoolingParameter.Name; 246 temperatureController.EndTemperatureParameter.ActualName = EndTemperatureParameter.Name; 247 temperatureController.ReheatingOperatorParameter.ActualName = ReheatingOperatorParameter.Name; 248 temperatureController.IsAcceptedParameter.ActualName = IsAcceptedName; 249 temperatureController.IterationsParameter.ActualName = IterationsParameter.Name; 250 temperatureController.LowerTemperatureParameter.ActualName = LowerTemperatureParameter.Name; 251 temperatureController.MaximumIterationsParameter.ActualName = MaximumIterationsParameter.Name; 252 temperatureController.StartTemperatureParameter.ActualName = StartTemperatureParameter.Name; 253 temperatureController.TemperatureParameter.ActualName = TemperatureParameter.Name; 254 temperatureController.TemperatureStartIndexParameter.ActualName = TemperatureStartIndexParameter.Name; 245 255 246 256 247 subScopesRemover.RemoveAllSubScopes = true; -
branches/jschiess/HeuristicLab.Algorithms.SimulatedAnnealing/3.3/TemperatureController.cs
r14555 r14702 50 50 private const string IsAcceptedName = "IsAccepted"; 51 51 private const string AcceptanceMemoryName = "AcceptanceMemory"; 52 private const string ReheatCountName = "ReheatCount"; 52 53 #endregion 53 54 … … 101 102 get { return (ILookupParameter<ItemList<BoolValue>>)Parameters[AcceptanceMemoryName]; } 102 103 } 104 public ILookupParameter<IntValue> ReheatCountParameter 105 { 106 get { return (ILookupParameter<IntValue>)Parameters[ReheatCountName]; } 107 } 103 108 #endregion 104 109 … … 121 126 Parameters.Add(new LookupParameter<BoolValue>(IsAcceptedName, "Whether the move was accepted or not.")); 122 127 Parameters.Add(new LookupParameter<ItemList<BoolValue>>(AcceptanceMemoryName, "Memorizes the last N acceptance decisions.")); 128 Parameters.Add(new LookupParameter<IntValue>(ReheatCountName, "The number of reheats.")); 123 129 } 124 130
Note: See TracChangeset
for help on using the changeset viewer.