Esempio n. 1
0
 public PSOAlgorithm<ICell[]> CreateIndexMovementBasedWithGlobalBestCellBuilder(int Population, FAPModel Model, double localCoefficient, double globalCoefficient)
 {
     PositionGenCellArray generator = new FrequencyIndexPositionGenerator(Model);
     FitnessFuncCellArray evalFunction = new FAPIndexCostFunction(Model);
     ParticleMoveFunction moveFunction = new PerTRXChannelIndexFunction(Model, localCoefficient, globalCoefficient, CreateCollisionResolver(Model));
     ICellIntegrityChecker checker = new GBCIndexBasedViolationChecker(Model);
     String benchName = Model.GeneralInformation.ScenarioID;
     return new FAPPSOAlgorithm(benchName, Population, evalFunction, moveFunction, generator, checker, GBestFactory.GetGlobalBestCellBuilderSelector());
 }
 public IndexStatisticalAnalyser(FAPModel model)
     : base(model)
 {
     channels = model.Channels;
     infExceeding = new double[10];
     coChInterference = new List<double>();
     adjChInterference = new List<double>();
     trxInterference = new List<double>();
 }
Esempio n. 3
0
 public PSOAlgorithm<ICell[]> CreateFrequencyValueBased(int Population,FAPModel Model,double localCoefficient, double globalCoefficient)
 {
     PositionGenCellArray generator = new FrequencyPositionGenerator(Model);
     FitnessFuncCellArray evalFunction = new FAPCostFunction(Model);
     ParticleMoveFunction moveFunction = new ParticlePerTrxFunction(Model, Model.GeneralInformation.Spectrum[0], Model.GeneralInformation.Spectrum[1],
          localCoefficient, globalCoefficient, CreateCollisionResolver(Model));
     ICellIntegrityChecker checker = new GBCViolationChecker(Model.GeneralInformation.GloballyBlockedChannels);
     String benchName = Model.GeneralInformation.ScenarioID;
     return new FAPPSOAlgorithm(benchName,Population, evalFunction, moveFunction, generator, checker,GBestFactory.GetStandardSelector());
 }
        public PSOAlgorithm<ICell[]> CreateFrequencyIndexBased(int Population, 
			FAPModel Model, double localCoefficient, double globalCoefficient)
        {
            PositionGenCellArray generator = new FrequencyIndexPositionGenerator(Model);
            FitnessFuncCellArray evalFunction = new FAPIndexCostFunction(Model);
            ParticleMoveFunction moveFunction = new ParticlePerTrxFunction(Model, 0,
                Model.Channels.Length - 1, localCoefficient, globalCoefficient,
                CreateCollisionResolver(Model));
            ICellIntegrityChecker checker = new GBCIndexBasedViolationChecker(Model);
            String benchName = Model.GeneralInformation.ScenarioID;
            return new FAPPSOAlgorithm(benchName, Population, evalFunction,
                moveFunction, generator, checker,
                GBestFactory.GetStandardSelector(), new IndexStatisticalAnalyser(Model));
        }
Esempio n. 5
0
 public FAPModel CreateModel(String path)
 {
     FAPModel model = new FAPModel(path);
     model.createModel();
     return model;
 }
 public GBCIndexBasedViolationChecker(FAPModel model)
 {
     channels = model.Channels;
     gbc = model.GeneralInformation.GloballyBlockedChannels;
 }
 public FAPIndexCostFunction(FAPModel model)
     : base(model)
 {
     channels = model.Channels;
 }
Esempio n. 8
0
 protected AbstractCollisionResolver CreateCollisionResolver(FAPModel model)
 {
     return new RandomCollisionResolver(model.Channels);
 }
 public StdStatisticalAnalyser(FAPModel model)
     : base(model)
 {
     channels = model.Channels;
     infExceeding = new double[10];
 }