public BasicPopulation(int thePopulationSize) { Label_00B3: this._geneIDGenerate = new BasicGenerateID(); this._genomeIDGenerate = new BasicGenerateID(); do { this._genomes = new List<IGenome>(); } while ((((uint) thePopulationSize) - ((uint) thePopulationSize)) > uint.MaxValue); this._innovationIDGenerate = new BasicGenerateID(); if (0 == 0) { this.OldAgePenalty = 0.3; this.OldAgeThreshold = 50; this.Species = new List<ISpecies>(); this._speciesIDGenerate = new BasicGenerateID(); this.SurvivalRate = 0.2; if ((((uint) thePopulationSize) - ((uint) thePopulationSize)) >= 0) { this._youngBonusAgeThreshold = 10; } else { goto Label_00B3; } } this.YoungScoreBonus = 0.3; this.PopulationSize = thePopulationSize; }
/// <summary> /// Construct a population. /// </summary> /// <param name="thePopulationSize">The population size.</param> public BasicPopulation(int thePopulationSize) { _geneIDGenerate = new BasicGenerateID(); _genomeIDGenerate = new BasicGenerateID(); _genomes = new List <IGenome>(); _innovationIDGenerate = new BasicGenerateID(); OldAgePenalty = DefaultOldAgePenalty; OldAgeThreshold = DefaultOldAgeThreshold; Species = new List <ISpecies>(); _speciesIDGenerate = new BasicGenerateID(); SurvivalRate = DefaultSurvivalRate; _youngBonusAgeThreshold = DefaultYouthThreshold; YoungScoreBonus = DefaultYouthBonus; PopulationSize = thePopulationSize; }
public BasicPopulation() { goto Label_0091; Label_0013: this.YoungScoreBonus = 0.3; this.PopulationSize = 0; return; Label_0091: this._geneIDGenerate = new BasicGenerateID(); this._genomeIDGenerate = new BasicGenerateID(); this._genomes = new List<IGenome>(); Label_0079: if (4 != 0) { if (0 != 0) { goto Label_0013; } this._innovationIDGenerate = new BasicGenerateID(); this.OldAgePenalty = 0.3; } this.OldAgeThreshold = 50; this.Species = new List<ISpecies>(); this._speciesIDGenerate = new BasicGenerateID(); this.SurvivalRate = 0.2; if (-2147483648 != 0) { if (4 != 0) { this._youngBonusAgeThreshold = 10; goto Label_0013; } } else { goto Label_0079; } goto Label_0091; }
/// <summary> /// Construct a population. /// </summary> /// <param name="thePopulationSize">The population size.</param> public BasicPopulation(int thePopulationSize) { _geneIDGenerate = new BasicGenerateID(); _genomeIDGenerate = new BasicGenerateID(); _genomes = new List<IGenome>(); _innovationIDGenerate = new BasicGenerateID(); OldAgePenalty = DefaultOldAgePenalty; OldAgeThreshold = DefaultOldAgeThreshold; Species = new List<ISpecies>(); _speciesIDGenerate = new BasicGenerateID(); SurvivalRate = DefaultSurvivalRate; _youngBonusAgeThreshold = DefaultYouthThreshold; YoungScoreBonus = DefaultYouthBonus; PopulationSize = thePopulationSize; }
public HomeController(IPosRepo repo, IGenerateID generateID) { _repo = repo; _generateID = generateID; }
public PosRepo(POSDBContext dbContext, IGenerateID generateID) { _dbContext = dbContext; _generateID = generateID; }
public HomeController(IBaseRepo baseRepo, IMTSRepo repo, IGenerateID generateID) { _baseRepo = baseRepo; _repo = repo; _generateID = generateID; }