/**
 * @brief Gets an evaluation from our list with a given ID
 * @param id ID to use to get the evaluation with
 * @return evaluationdata object from the ID
 */
EvaluationData DataInterface::getEvaluationDataFromID(int id)
{
    //Loop through our evaluations for one with the matching id
    EvaluationData retEval;
    foreach(EvaluationData e, getEvaluations())
    {
        if(e.getInfo(EvaluationData::evalNumber) == id)
        {
            retEval = e;
            break;
        }
    }
    return retEval;
}
Exemplo n.º 2
0
bool DynamicProblem::predictChange(const int evalsMore){
    int fre=getChangeFre();
    int evals=getEvaluations()%fre;
    if(evals+evalsMore>=fre) return true;
    else return false;
}