public class AcceptanceLogger extends ManualLogger
Constructor and Description |
---|
AcceptanceLogger(int iterations,
java.lang.String logFile,
java.io.File outputDir,
int granularity,
boolean tempMaxSetting,
double tempTargetGoal,
double tempTargetAllowedDeviation,
int tempIterationCheck)
Constructs a new Acceptancelogger with given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
advice(EnsembleSA sa)
Overrides and defines the advice function for an Acceptance logger.
|
int |
getAccepted() |
java.util.ArrayList<java.lang.Double> |
getAcceptedList() |
int |
getBetter() |
java.util.ArrayList<java.lang.Double> |
getBetterList() |
java.util.ArrayList<java.lang.Double> |
getChance() |
int |
getGranularity() |
int |
getLogged() |
int |
getReverted() |
java.util.ArrayList<java.lang.Double> |
getRevertedList() |
int |
getTempIterationCheck() |
double |
getTempTargetGoal() |
double |
getTempTargetGoalAllowedDeviation() |
boolean |
isTempGood() |
boolean |
isTempMaxSetting() |
boolean |
isTempToHigh() |
boolean |
isTempToLow() |
ManualLogger |
makeCopy(java.lang.String suffix)
Copy constructor, creates and returns a new AcceptanceLogger in the form of a ManuaLogger, with the same settings as the argument but a different logfile.
|
void |
setAccepted(int accepted) |
void |
setAcceptedList(java.util.ArrayList<java.lang.Double> acceptedList) |
void |
setBetter(int better) |
void |
setBetterList(java.util.ArrayList<java.lang.Double> betterList) |
void |
setChance(java.util.ArrayList<java.lang.Double> chance) |
void |
setGranularity(int granularity) |
void |
setLogged(int logged) |
void |
setReverted(int reverted) |
void |
setRevertedList(java.util.ArrayList<java.lang.Double> revertedList) |
void |
setTempGood(boolean tempGood) |
void |
setTempIterationCheck(int tempIterationCheck) |
void |
setTempMaxSetting(boolean tempMaxSetting) |
void |
setTempTargetGoal(double tempTargetGoal) |
void |
setTempTargetGoalAllowedDeviation(double tempTargetGoalAllowedDeviation) |
void |
setTempToHigh(boolean tempToHigh) |
void |
setTempToLow(boolean tempToLow) |
deleteFile, getIterations, getIterationsSoFar, getLogFile, isFired, isPositive, log, setFired, setLogFile, setPositive, toFile
public AcceptanceLogger(int iterations, java.lang.String logFile, java.io.File outputDir, int granularity, boolean tempMaxSetting, double tempTargetGoal, double tempTargetAllowedDeviation, int tempIterationCheck)
iterations
- frequency of logging, passed to super constructor, for this penalty, should be 1logFile
- file to log toooutputDir
- output directorygranularity
- frequency of writing to filetempMaxSetting
- if temperature scheme should be checked by loggertempTargetGoal
- percentage goal for temperature schemetempTargetAllowedDeviation
- allowed deviation from the goaltempIterationCheck
- after how many iterations should temperature scheme be checkedpublic ManualLogger makeCopy(java.lang.String suffix)
makeCopy
in class ManualLogger
suffix
- new output filenamepublic void advice(EnsembleSA sa)
advice
in class ManualLogger
sa
- the re-ranking progress requesting advicepublic boolean isTempGood()
public void setTempGood(boolean tempGood)
public int getBetter()
public void setBetter(int better)
public int getAccepted()
public void setAccepted(int accepted)
public int getReverted()
public void setReverted(int reverted)
public int getLogged()
public void setLogged(int logged)
public java.util.ArrayList<java.lang.Double> getChance()
public void setChance(java.util.ArrayList<java.lang.Double> chance)
public java.util.ArrayList<java.lang.Double> getBetterList()
public void setBetterList(java.util.ArrayList<java.lang.Double> betterList)
public java.util.ArrayList<java.lang.Double> getAcceptedList()
public void setAcceptedList(java.util.ArrayList<java.lang.Double> acceptedList)
public java.util.ArrayList<java.lang.Double> getRevertedList()
public void setRevertedList(java.util.ArrayList<java.lang.Double> revertedList)
public int getGranularity()
public void setGranularity(int granularity)
public boolean isTempMaxSetting()
public void setTempMaxSetting(boolean tempMaxSetting)
public int getTempIterationCheck()
public void setTempIterationCheck(int tempIterationCheck)
public double getTempTargetGoal()
public void setTempTargetGoal(double tempTargetGoal)
public double getTempTargetGoalAllowedDeviation()
public void setTempTargetGoalAllowedDeviation(double tempTargetGoalAllowedDeviation)
public boolean isTempToHigh()
public void setTempToHigh(boolean tempToHigh)
public boolean isTempToLow()
public void setTempToLow(boolean tempToLow)