- Timestamp:
- 11/24/15 18:22:29 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs
r13382 r13385 90 90 var multiEnc = ProblemScript.Encoding as CombinedEncoding; 91 91 if (multiEnc != null) multiEnc.Clear(); 92 ProblemScript.Initialize();93 92 Encoding = (TEncoding)ProblemScript.Encoding.Clone(); 94 93 -
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/Plugin.cs.frame
r13321 r13385 31 31 [PluginDependency("HeuristicLab.Core", "3.3")] 32 32 [PluginDependency("HeuristicLab.Data", "3.3")] 33 [PluginDependency("HeuristicLab.Encodings.BinaryVectorEncoding", "3.3")] 34 [PluginDependency("HeuristicLab.Encodings.IntegerVectorEncoding", "3.3")] 35 [PluginDependency("HeuristicLab.Encodings.RealVectorEncoding", "3.3")] 36 [PluginDependency("HeuristicLab.Encodings.PermutationEncoding", "3.3")] 37 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3")] 38 [PluginDependency("HeuristicLab.Encodings.LinearLinkageEncoding", "3.3")] 33 39 [PluginDependency("HeuristicLab.Optimization", "3.3")] 34 40 [PluginDependency("HeuristicLab.Parameters", "3.3")] -
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs
r13348 r13385 124 124 try { 125 125 inst = (CompiledProblemDefinition<TEncoding, TSolution>)Activator.CreateInstance(types.Single(x => typeof(CompiledProblemDefinition<TEncoding, TSolution>).IsAssignableFrom(x))); 126 } 127 catch (Exception e) { 126 } catch (Exception e) { 128 127 compiledProblemDefinition = null; 129 128 throw new ProblemDefinitionScriptException("Instantiating the problem definition failed." + Environment.NewLine + "Check your default constructor.", e); … … 133 132 inst.vars = new Variables(VariableStore); 134 133 inst.Encoding = encoding; 135 }136 catch (Exception e) {134 inst.Initialize(); 135 } catch (Exception e) { 137 136 compiledProblemDefinition = null; 138 137 throw new ProblemDefinitionScriptException("Initializing the problem definition failed." + Environment.NewLine + "Check your Initialize() method.", e); … … 142 141 compiledProblemDefinition = inst; 143 142 if (fireChanged) OnProblemDefinitionChanged(); 144 } 145 catch (Exception e) { 143 } catch (Exception e) { 146 144 compiledProblemDefinition = null; 147 145 throw new ProblemDefinitionScriptException("Using the problem definition in the problem failed." + Environment.NewLine + "Examine this error message carefully (often there is an issue with the defined encoding).", e); -
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
r13382 r13385 93 93 var multiEnc = ProblemScript.Encoding as CombinedEncoding; 94 94 if (multiEnc != null) multiEnc.Clear(); 95 ProblemScript.Initialize();96 95 Encoding = (TEncoding)ProblemScript.Encoding.Clone(); 97 96
Note: See TracChangeset
for help on using the changeset viewer.