Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7781


Ignore:
Timestamp:
05/04/12 14:41:35 (12 years ago)
Author:
epitzer
Message:

#1839 allow preparing PSO with invalid problem and configure algorithm to run until the PSO main loop which does nothing (similar to e.g. Tabu Search)

File:
1 edited

Legend:

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

    r7512 r7781  
    258258    }
    259259
    260     public override void Prepare() {
    261       if (Problem != null && ParticleCreator != null && ParticleUpdater != null) {
    262         base.Prepare();
    263       }
    264     }
    265 
    266260    #region Events
    267261    protected override void OnProblemChanged() {
     
    412406      if (Problem != null) {
    413407        solutionsCreator.EvaluatorParameter.ActualName = Problem.EvaluatorParameter.Name;
    414         solutionsCreator.SolutionCreatorParameter.ActualName = ParticleCreatorParameter.Name;
     408        if (ParticleCreatorParameter.Value != null)
     409          solutionsCreator.SolutionCreatorParameter.ActualName = ParticleCreatorParameter.Name;
     410        else
     411          solutionsCreator.SolutionCreatorParameter.ActualName = Problem.SolutionCreatorParameter.Name;
    415412      }
    416413    }
Note: See TracChangeset for help on using the changeset viewer.