- Timestamp:
- 11/15/17 12:14:18 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CFSAP/HeuristicLab.Problems.Scheduling.CFSAP/3.3/MultiNestCFSAP.cs
r15460 r15472 41 41 : base(original, cloner) { } 42 42 public MultiNestCFSAP() { 43 Parameters.Add(new ValueParameter<ItemList<IntMatrix>>("ProcessingTimes", "The processing times of each nest, each machine, each job.") );44 Parameters.Add(new ValueParameter<ItemList<ItemList<IntMatrix>>>("SetupTimes", "The sequence dependent set up times for each nest, each machine, and each job to each other.") );43 Parameters.Add(new ValueParameter<ItemList<IntMatrix>>("ProcessingTimes", "The processing times of each nest, each machine, each job.") { GetsCollected = false }); 44 Parameters.Add(new ValueParameter<ItemList<ItemList<IntMatrix>>>("SetupTimes", "The sequence dependent set up times for each nest, each machine, and each job to each other.") { GetsCollected = false }); 45 45 46 46 ProcessingTimesParameter.Value = new ItemList<IntMatrix>() { … … 69 69 Encoding.Add(new PermutationEncoding("seq0", 5, PermutationTypes.RelativeDirected)); 70 70 Encoding.Add(new BinaryVectorEncoding("assign0", 5)); 71 72 EncodingParameter.GetsCollected = false; 73 foreach (var param in ((IEncoding)Encoding).Parameters.OfType<IValueParameter>().ToList()) { 74 param.GetsCollected = false; 75 } 71 76 72 77 Operators.RemoveAll(x => x is SingleObjectiveMoveGenerator); … … 124 129 Encoding.Add(new BinaryVectorEncoding("assign" + n, data.Jobs)); 125 130 } 131 132 #region Reduce run size by removing collected parameters 133 foreach (var param in ((IEncoding)Encoding).Parameters.OfType<IValueParameter>().ToList()) 134 param.GetsCollected = false; 135 136 var solCreator = SolutionCreator as IParameterizedItem; 137 if (solCreator != null) { 138 foreach (var param in solCreator.Parameters.OfType<IValueParameter>().ToList()) { 139 param.GetsCollected = false; 140 var secondLevel = param.Value as IParameterizedItem; 141 if (secondLevel != null) { 142 foreach (var secondLevelParam in secondLevel.Parameters.OfType<IValueParameter>().ToList()) 143 secondLevelParam.GetsCollected = false; 144 } 145 } 146 } 147 #endregion 148 126 149 Name = data.Name; 127 150 Description = data.Description;
Note: See TracChangeset
for help on using the changeset viewer.