Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/09/09 14:22:30 (15 years ago)
Author:
gkronber
Message:

Changed CEDMA dispatcher to allow different input variable sets for each target variable. #676 (Cockpit for the CEDMA Server to control algorithm settings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs

    r2152 r2153  
    5757    }
    5858
    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) {
    6260      DiscoveryService ds = new DiscoveryService();
    6361      IAlgorithm[] algos = ds.GetInstances<IAlgorithm>();
     
    102100      if (stochasticAlgos.Count() == 0) return null;
    103101      return stochasticAlgos.ElementAt(random.Next(stochasticAlgos.Count()));
    104     }
    105 
    106     public int SelectTargetVariable(int[] targetVariables) {
    107       return targetVariables[random.Next(targetVariables.Length)];
    108102    }
    109103
Note: See TracChangeset for help on using the changeset viewer.