double BSO::evaluate(std::bitset<chromoLength> paramsBS) { double result = 0.0; int chromo[] = {0,0,0,0,0, 0,0,0,0, 0,0,0,0,0, 0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0}; int length = paramsBS.size(); for(int i = 0; i < paramsBS.size(); i++){ chromo[i] = paramsBS.at(i); } result = this->sharedMemoryEvaluator->eval(chromo, length); return result; }
inline bool isprime_safe(const INT& n) const { return p.at(static_cast<size_t>(n)); }