- Timestamp:
- 07/09/09 14:22:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs
r2152 r2153 57 57 } 58 58 59 public override IAlgorithm SelectAndConfigureAlgorithm(int[] targetVariables, int[] inputVariables, Problem problem) { 60 int targetVariable = SelectTargetVariable(targetVariables); 61 59 public override IAlgorithm SelectAndConfigureAlgorithm(int targetVariable, int[] inputVariables, Problem problem) { 62 60 DiscoveryService ds = new DiscoveryService(); 63 61 IAlgorithm[] algos = ds.GetInstances<IAlgorithm>(); … … 102 100 if (stochasticAlgos.Count() == 0) return null; 103 101 return stochasticAlgos.ElementAt(random.Next(stochasticAlgos.Count())); 104 }105 106 public int SelectTargetVariable(int[] targetVariables) {107 return targetVariables[random.Next(targetVariables.Length)];108 102 } 109 103
Note: See TracChangeset
for help on using the changeset viewer.