Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5418


Ignore:
Timestamp:
02/03/11 23:36:56 (14 years ago)
Author:
mkofler
Message:

#852: Adapted PSO to perform move evaluation in parallel (using the parallel engine). See also #1333.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PSO/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs

    r5410 r5418  
    181181      Placeholder topologyUpdaterPlaceholder = new Placeholder();
    182182      UniformSubScopesProcessor uniformSubscopesProcessor2 = new UniformSubScopesProcessor();
     183      UniformSubScopesProcessor evaluationProcessor = new UniformSubScopesProcessor();
    183184      NeighborUpdater neighborUpdater2 = new NeighborUpdater();
    184185      Placeholder evaluatorPlaceholder2 = new Placeholder();
     
    227228
    228229      uniformSubScopeProcessor.Operator = particleUpdaterPlaceholder;
    229       uniformSubScopeProcessor.Successor = topologyUpdaterPlaceholder;
     230      uniformSubScopeProcessor.Successor = evaluationProcessor;
    230231
    231232      particleUpdaterPlaceholder.Name = "(ParticleUpdater)";
    232233      particleUpdaterPlaceholder.OperatorParameter.ActualName = "ParticleUpdater";
    233       particleUpdaterPlaceholder.Successor = evaluatorPlaceholder2;
     234
     235      evaluationProcessor.Parallel = new BoolValue(true);
     236      evaluationProcessor.Operator = evaluatorPlaceholder2;
     237      evaluationProcessor.Successor = topologyUpdaterPlaceholder;
    234238
    235239      evaluatorPlaceholder2.Name = "(Evaluator)";
Note: See TracChangeset for help on using the changeset viewer.