protected TravellingSalesmanMap Map; // { get; set; } #endregion Fields #region Constructors //Referencia a melhor particula atualmente //public TSPParticle gBest; /* public TSPParticle(TSPParticle particle) : base() { this.Position = particle.Position; this.Velocity = particle.Velocity; this.Fitness = particle.Fitness; } private TSPParticle() : base() { } */ private TSPParticle(ParticleSwarm containingSwarm, TravellingSalesmanMap Map) : base(containingSwarm) { this.Map = Map; }
/* protected Particle(Particle particle) { this.Position = particle.Position; this.Velocity = particle.Velocity; this.Fitness = particle.Fitness; } */ protected Particle(ParticleSwarm containingSwarm) { this.Swarm = containingSwarm; }
/* * protected Particle(Particle particle) * { * this.Position = particle.Position; * this.Velocity = particle.Velocity; * this.Fitness = particle.Fitness; * } */ protected Particle(ParticleSwarm containingSwarm) { this.Swarm = containingSwarm; }