Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edu/birzeit/ibea #298

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
2,528 changes: 0 additions & 2,528 deletions client/src/main/java/org/evosuite/Properties.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,10 @@ public List<T> getBestIndividuals() {
}

if (Properties.ALGORITHM == Algorithm.NSGAII ||
Properties.ALGORITHM == Algorithm.SPEA2)
Properties.ALGORITHM == Algorithm.SPEA2 ||
Properties.ALGORITHM == Algorithm.IBEA ||
Properties.ALGORITHM == Algorithm.M_IBEA //Hadi: added the IBEA TODO: do we need it
)
return population;

// Assume population is sorted
Expand All @@ -779,16 +782,16 @@ public void writeIndividuals(List<T> individuals) {
return;
}

File dir = new File(Properties.REPORT_DIR);
if (!dir.exists()) {
if (!dir.mkdirs()) {
throw new RuntimeException("Cannot create report dir: " + Properties.REPORT_DIR);
}
}
// File dir = new File(Properties.REPORT_DIR);
// if (!dir.exists()) {
// if (!dir.mkdirs()) {
// throw new RuntimeException("Cannot create report dir: " + Properties.REPORT_DIR);
// }
// }

try {
File populationFile = new File(
Properties.REPORT_DIR + File.separator + "pareto_" + this.currentIteration + ".csv");
"C:\\evosuite-report\\" + "pareto_" + this.currentIteration + ".csv");
populationFile.createNewFile();

FileWriter fw = new FileWriter(populationFile.getAbsoluteFile());
Expand Down Expand Up @@ -986,9 +989,11 @@ public void setPopulationLimit(PopulationLimit limit) {
*/
public boolean isFinished() {
for (StoppingCondition c : stoppingConditions) {
// logger.error(c + " "+ c.getCurrentValue());
if (c.isFinished())
if (c.isFinished()){
logger.warn( "Finished :" +c.toString());
return true;
}

}
return false;
}
Expand Down
Loading