void MultiTuner::tuneComp() {
Vector<TunerRecord *> *tunerV = new Vector<TunerRecord *>(&tuners);
for (uint b = 0; b < budget; b++) {
-
uint tSize = tunerV->getSize();
for (uint i = 0; i < tSize; i++) {
SearchTuner *tmpTuner = mutateTuner(tunerV->get(i)->getTuner(), b);
places.insertAt(k, tuner);
}
}
- int points = 4;
+ int points = 9;
for (uint k = 0; k < places.getSize() && points; k++) {
TunerRecord *tuner = places.get(k);
- points = points / 2;
+ points = points / 3;
int currScore = 0;
if (scores.contains(tuner))
currScore = scores.get(tuner);
}
ranking.insertAt(j, tuner);
}
+ for (uint i = tuners.getSize(); i < ranking.getSize(); i++) {
+ TunerRecord * tuner = ranking.get(i);
+ for(uint j = 0; j < tunerV->getSize(); j++) {
+ if (tunerV->get(j) == tuner)
+ tunerV->removeAt(j);
+ }
+ }
}
}