Changeset 17610 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Problem.cs
- Timestamp:
- 06/19/20 14:26:41 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Problem.cs
r17570 r17610 101 101 } 102 102 103 protected Problem() 104 : base() { 105 Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.") { Hidden = true }); 106 Parameters.Add(new ValueParameter<TEvaluator>("Evaluator", "The operator used to evaluate a solution.") { Hidden = true }); 107 108 if (Encoding != null) { 109 oldEncoding = Encoding; 110 Parameterize(); 111 } 112 RegisterEvents(); 113 } 114 protected Problem(TEncoding encoding) { 103 protected Problem(TEncoding encoding) : base() { 115 104 if (encoding == null) throw new ArgumentNullException("encoding"); 116 105 Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.", encoding) { Hidden = true });
Note: See TracChangeset
for help on using the changeset viewer.