Пример #1
0
 //Конструктор
 public OptimizationMethod(int amParams, Function func, GenVectorFunction genVectorFunction, Vector max)
 {
     this.amParams          = amParams;
     this.func              = func;
     this.genVectorFunction = genVectorFunction;
     this.max = max;
 }
Пример #2
0
 //Конструктор
 public GA(int amIndividuals, int amGenes, int amPopulations, Function func, GenVectorFunction genVectorFunction, Vector max) : base(amGenes, func, genVectorFunction, max)
 {
     this.amIndividuals = amIndividuals;
     this.amPopulations = amPopulations;
 }
Пример #3
0
 //Конструктор
 public SHC(int amParams, int amIterations, int amInternalIterations, Function func, GenVectorFunction genVectorFunction, Vector max) : base(amParams, func, genVectorFunction, max)
 {
     this.amIterations         = amIterations;
     this.amInternalIterations = amInternalIterations;
 }
Пример #4
0
 //Конструктор
 public PSO(int amParticles, int amParams, int amSteps, double a1, double a2, Function func, GenVectorFunction genVectorFunction, Vector max) : base(amParams, func, genVectorFunction, max)
 {
     this.amParticles = amParticles;
     this.amSteps     = amSteps;
     this.a1          = a1;
     this.a2          = a2;
 }