Package org.uma.evolver.parameter
Class ParameterManagement
java.lang.Object
org.uma.evolver.parameter.ParameterManagement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeParameter(Parameter<?> parameter, double value) static StringBuilderdecodeParametersToString(List<Parameter<?>> parameters, List<Double> values) Given a list of parameters and a list of the corresponding encoded parameter values in the range [0.0, 1.0], returns a string where each parameter is encoded as sequence of "--parameterName parameterValue" pairsstatic doubledecodeParameterToDoubleValues(Parameter<?> parameter, double value) parameterFlattening(List<Parameter<?>> parameters) Given a list of parameters, returns a list with all of them and all of their sub-parametersstatic voidwriteDecodedSolutionsFoFile(List<Parameter<?>> parameters, List<org.uma.jmetal.solution.doublesolution.DoubleSolution> solutions, String fileName) static voidwriteDecodedSolutionsToDoubleValuesFoFile(List<Parameter<?>> parameters, List<org.uma.jmetal.solution.doublesolution.DoubleSolution> solutions, String fileName)
-
Constructor Details
-
ParameterManagement
public ParameterManagement()
-
-
Method Details
-
decodeParameter
-
decodeParameterToDoubleValues
-
decodeParametersToString
public static StringBuilder decodeParametersToString(List<Parameter<?>> parameters, List<Double> values) Given a list of parameters and a list of the corresponding encoded parameter values in the range [0.0, 1.0], returns a string where each parameter is encoded as sequence of "--parameterName parameterValue" pairs- Parameters:
parameters- List of parametersvalues- List of encoded parameter values in the range [0.0, 1.0]- Returns:
- A
StringBuilderobject
-
writeDecodedSolutionsFoFile
public static void writeDecodedSolutionsFoFile(List<Parameter<?>> parameters, List<org.uma.jmetal.solution.doublesolution.DoubleSolution> solutions, String fileName) throws IOException - Throws:
IOException
-
writeDecodedSolutionsToDoubleValuesFoFile
public static void writeDecodedSolutionsToDoubleValuesFoFile(List<Parameter<?>> parameters, List<org.uma.jmetal.solution.doublesolution.DoubleSolution> solutions, String fileName) throws IOException - Throws:
IOException
-
parameterFlattening
-