|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeco.kernel.util.Util
public class Util
Utility class for doing general operations: read from file, write to file, normalization, etc.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static void |
normalize(java.util.ArrayList<Solutions> setOfSolutions,
int dim)
Function that normalize a set of fronts in the interval [1,2] |
static void |
normalize(java.util.ArrayList<Solutions> setOfSolutions,
int dim,
double lowerBound,
double upperBound)
Function that normalizes a set of fronts in the given interval. |
static Solutions |
readFrontFromFile(java.lang.String filePath)
Function that reads a set of solutions from a file. |
static java.util.ArrayList<Solutions> |
readFrontsFromFile(java.lang.String filePath)
Function that reads N sets of solutions from a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static Solutions readFrontFromFile(java.lang.String filePath) throws java.lang.Exception
filePath
- File path
java.lang.Exception
public static java.util.ArrayList<Solutions> readFrontsFromFile(java.lang.String filePath) throws java.lang.Exception
filePath
- File path
java.lang.Exception
public static void normalize(java.util.ArrayList<Solutions> setOfSolutions, int dim, double lowerBound, double upperBound)
setOfSolutions
- Set of frontsdim
- Number of objectiveslowerBound
- lower boundupperBound
- upper boundpublic static void normalize(java.util.ArrayList<Solutions> setOfSolutions, int dim)
setOfSolutions
- Set of frontsdim
- Number of objectives
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |