Class IraceConfig
java.lang.Object
es.urjc.etsii.grafo.autoconfig.irace.IraceConfig
This class is used to configure irace by the properties specified in the application.yml
section irace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMaximum number of individual evaluations retained for the autoconfig REST API.booleanisAuc()Decide if we should use the objective function directly or if we should calculate the AUC over the objective functionbooleanIs irace enabled?booleanIs time control enabled?voidsetApiEvaluationHistoryLimit(int apiEvaluationHistoryLimit) Configure the maximum number of evaluations retained by the autoconfig REST API.voidsetAuc(boolean auc) Decide if we should use the objective function directly or if we should calculate the AUC over the objective functionvoidsetEnabled(boolean enabled) Is irace enabled?voidsetTimecontrol(boolean timecontrol) Enable or disable time control.
-
Field Details
-
DEFAULT_API_EVALUATION_HISTORY_LIMIT
public static final int DEFAULT_API_EVALUATION_HISTORY_LIMIT- See Also:
-
-
Constructor Details
-
IraceConfig
public IraceConfig()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Is irace enabled?- Returns:
- true if irace is enabled, false otherwise
-
setEnabled
public void setEnabled(boolean enabled) Is irace enabled?- Parameters:
enabled- true to enable irace, false to disable
-
isAuc
public boolean isAuc()Decide if we should use the objective function directly or if we should calculate the AUC over the objective function- Returns:
- trye if we should calculate the AUC, false to use the objective function applied to the solution
-
setAuc
public void setAuc(boolean auc) Decide if we should use the objective function directly or if we should calculate the AUC over the objective function- Parameters:
auc- true to calculate the AUC, false to use the objective function applied to the solution
-
isTimecontrol
public boolean isTimecontrol()Is time control enabled?- Returns:
- true if enabled, false otherwise
-
setTimecontrol
public void setTimecontrol(boolean timecontrol) Enable or disable time control.- Parameters:
timecontrol- true to enable, false to disable
-
getApiEvaluationHistoryLimit
public int getApiEvaluationHistoryLimit()Maximum number of individual evaluations retained for the autoconfig REST API.- Returns:
- evaluation history limit
-
setApiEvaluationHistoryLimit
public void setApiEvaluationHistoryLimit(int apiEvaluationHistoryLimit) Configure the maximum number of evaluations retained by the autoconfig REST API.- Parameters:
apiEvaluationHistoryLimit- positive history limit
-