Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/29/11 15:19:20 (13 years ago)
Author:
epitzer
Message:
  • Remove superfluous placeholders
  • Hide ParticleUpdater
  • Add CurrentVelocityBounds parameter analogous to CurrentInertia
  • Add (Current)VelocityBounds to results
  • Merge VelocityBoundsModifier directly into SwarmUpdater (#852)
Location:
trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/HeuristicLab.Algorithms.ParticleSwarmOptimization-3.3.csproj

    r5643 r5866  
    108108    <Compile Include="MultiPSOTopologyUpdater.cs" />
    109109    <Compile Include="ParticleSwarmOptimizationMainLoop.cs" />
    110     <Compile Include="VelocityBoundsModifier.cs" />
    111110    <Compile Include="RandomTopologyInitializer.cs" />
    112111    <Compile Include="VonNeumannTopologyInitializer.cs" />
  • trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs

    r5844 r5866  
    163163      Parameters.Add(new OptionalConstrainedValueParameter<IDiscreteDoubleValueModifier>("InertiaUpdater", "Updates the omega parameter."));
    164164      Parameters.Add(new ConstrainedValueParameter<ISwarmUpdater>("SwarmUpdater", "Encoding-specific parameter which is provided by the problem. May provide additional encoding-specific parameters, such as velocity bounds for real valued problems"));
     165      ParticleUpdaterParameter.Hidden = true;
    165166
    166167      RandomCreator randomCreator = new RandomCreator();
    167168      VariableCreator variableCreator = new VariableCreator();
    168       Assigner assigner = new Assigner();
     169      Assigner currentInertiaAssigner = new Assigner();
    169170      solutionsCreator = new SolutionsCreator();
    170171      SubScopesCounter subScopesCounter = new SubScopesCounter();
    171172      Placeholder topologyInitializerPlaceholder = new Placeholder();
    172       Placeholder analyzerPlaceholder = new Placeholder();
    173173      mainLoop = new ParticleSwarmOptimizationMainLoop();
    174174
     
    180180
    181181      variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("CurrentIteration", new IntValue(0)));
    182       variableCreator.CollectedValues.Add(new ValueParameter<DoubleValue>("CurrentVelocityBounds", new DoubleValue(0)));
    183       variableCreator.Successor = assigner;
    184 
    185       assigner.Name = "CurrentInertia := Inertia";
    186       assigner.LeftSideParameter.ActualName = "CurrentInertia";
    187       assigner.RightSideParameter.ActualName = "Inertia";
    188       assigner.Successor = solutionsCreator;
     182      variableCreator.Successor = currentInertiaAssigner;
     183
     184      currentInertiaAssigner.Name = "CurrentInertia := Inertia";
     185      currentInertiaAssigner.LeftSideParameter.ActualName = "CurrentInertia";
     186      currentInertiaAssigner.RightSideParameter.ActualName = "Inertia";
     187      currentInertiaAssigner.Successor = solutionsCreator;
    189188
    190189      solutionsCreator.NumberOfSolutionsParameter.ActualName = "SwarmSize";
  • trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimizationMainLoop.cs

    r5645 r5866  
    5656      get { return (IValueLookupParameter<DoubleValue>)Parameters["NeighborBestAttraction"]; }
    5757    }
    58     public IValueLookupParameter<DoubleMatrix> VelocityBoundsParameter {
    59       get { return (IValueLookupParameter<DoubleMatrix>)Parameters["VelocityBounds"]; }
    60     }
    6158    public IValueLookupParameter<IOperator> ParticleUpdaterParameter {
    6259      get { return (IValueLookupParameter<IOperator>)Parameters["ParticleUpdater"]; }
     
    128125      Placeholder particleUpdaterPlaceholder = new Placeholder();
    129126      Placeholder topologyUpdaterPlaceholder = new Placeholder();
    130       UniformSubScopesProcessor uniformSubscopesProcessor2 = new UniformSubScopesProcessor();
    131127      UniformSubScopesProcessor evaluationProcessor = new UniformSubScopesProcessor();
    132128      Placeholder swarmUpdater = new Placeholder();
     
    134130      Comparator currentIterationComparator = new Comparator();
    135131      ConditionalBranch conditionalBranch = new ConditionalBranch();
    136       Placeholder velocityBoundsUpdaterPlaceholder = new Placeholder();
    137132      Placeholder inertiaUpdaterPlaceholder = new Placeholder();
    138133      SubScopesCounter subScopesCounter = new SubScopesCounter();
     
    176171      topologyUpdaterPlaceholder.Successor = swarmUpdater;
    177172
    178       swarmUpdater.Name = "Swarm Updater";
     173      swarmUpdater.Name = "(Swarm Updater)";
    179174      swarmUpdater.OperatorParameter.ActualName = SwarmUpdaterParameter.ActualName;
    180175      swarmUpdater.Successor = inertiaUpdaterPlaceholder;
Note: See TracChangeset for help on using the changeset viewer.