java.lang.Object
es.urjc.etsii.grafo.autoconfig.builder.AlgorithmBuilder<S,I>
- Type Parameters:
S
- Solution classI
- Instance class
- Direct Known Subclasses:
AutomaticAlgorithmBuilder
,IraceExperiment
Provides the necessary methods to generate an algorithm from the proposed Irace configuration.
Implementation is mandatory only if irace integration is used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates an algorithm from a given Irace config.buildFromStringParams
(String paramString) Build an algorithm from a config string such as those returned by irace.
-
Constructor Details
-
AlgorithmBuilder
public AlgorithmBuilder()
-
-
Method Details
-
buildFromConfig
Generates an algorithm from a given Irace config. Seed, instance, and other common parameters are automatically processed by Mork- Parameters:
config
- Subset of config parameters, only those required for algorithm configuration- Returns:
- Algorithm generated according to Irace chosen parameters
-
buildFromStringParams
Build an algorithm from a config string such as those returned by irace. Example: "constructive=random balanced=true initialmaxdiffratio=0.8193 cooldownexpratio=0.9438 cyclelength=9"- Parameters:
paramString
- config string with key-values for each parameter- Returns:
- built algorithm
-