Minor tweaks
This commit is contained in:
@@ -195,6 +195,14 @@ public class CBNPSO extends ClusterBasedNichingEA implements Serializable {
|
||||
return ToolBox.appendArrays(super.getAdditionalDataHeader(), addVals);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getAdditionalDataInfo() {
|
||||
String[] addVals = {"Ratio of interesting solutions within all archived solutions"};
|
||||
if (getCurrentPeriod()>=0) addVals = new String[]{"Ratio of interesting solutions within all archived solutions",
|
||||
"Current sigma adaptation period"};
|
||||
return ToolBox.appendArrays(super.getAdditionalDataInfo(), addVals);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the current period of the sinusoidal sigma adaption (in case it is controlled by a threshold adaption)
|
||||
* or -1 if this does not apply.
|
||||
|
@@ -120,11 +120,13 @@ public class EvAJobList extends PropertySelectableList<EvAJob> implements Serial
|
||||
File sFile = fc.getSelectedFile();
|
||||
if (sFile.exists()) {
|
||||
for (EvAJob job : selected) {
|
||||
if (job!=null) {
|
||||
if (!FileTools.saveObjectToFolder(job, sFile, false, parentComponent)) {
|
||||
System.err.println("Error on saving jobs...");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else return false; // invalid folder chosen
|
||||
} else return false; // user break
|
||||
}
|
||||
|
Reference in New Issue
Block a user