//Do run
snprintf(buffer, sizeof(buffer), "./run.sh deserializerun %s %u tuner%u result%u > log%u", problem->getProblem(), maxtime, execnum, execnum, execnum);
+ model_print("Running: %s\n", buffer);
int status = system(buffer);
long long metric = -1;
TunerRecord *tuner2 = tunerV->get(tunerNumber + i);
ASSERT( tunerNumber + i < tunerV->getSize());
model_print("Tuner1 = %d \tTuner2 = %d\n", tuner1->getTunerNumber(), tuner2->getTunerNumber());
- ASSERT(scores.contains(tuner1));
- ASSERT(scores.contains(tuner2));
- int score1 = scores.get(tuner1);
- int score2 = scores.get(tuner2);
+
+ int score1, score2;
+ if(!scores.contains(tuner1)){
+ score1 = 0;
+ }else {
+ score1 = scores.get(tuner1);
+ }
+ if(!scores.contains(tuner2)){
+ score2=0;
+ }else {
+ score2= scores.get(tuner2);
+ }
+
if( score2 > score1 ){
removeTunerIndex(tunerV, i, allplaces);
} else if( score2 < score1){