演化仿真引擎 Evolve

码农软件 · 软件分类 · 其他(Others) · 2019-07-20 18:14:19

软件介绍

Evolve 是一个用 Objective-C 编写的演化仿真引擎。

示例代码:

- (void)evaluateFitnessForPopulation {    
NSArray *organisms = self.evolutionManager.population.organisms;    
for (Organism *organism in organisms) {        
   NSString *genomeString = organism.genome.sequence;        
   NSInteger geneSequenceLength = genomeString.length;        
   NSInteger correctCharacters = 0;        
   for (NSInteger charIndex = 0; 
      charIndex < geneSequenceLength; charIndex++) {            
      if ([genomeString characterAtIndex:charIndex] 
      == [kTargetString characterAtIndex:charIndex]) {
                correctCharacters++;
            }
        }

        organism.fitness = correctCharacters;
    }
}

本文地址:https://codercto.com/soft/d/10565.html

Algorithms Sequential & Parallel

Algorithms Sequential & Parallel

Russ Miller、Laurence Boxer / Charles River Media / 2005-08-03 / USD 59.95

With multi-core processors replacing traditional processors and the movement to multiprocessor workstations and servers, parallel computing has moved from a specialty area to the core of computer scie......一起来看看 《Algorithms Sequential & Parallel》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

MD5 加密
MD5 加密

MD5 加密工具