moea.moga.examples
Class ChowPaperCont

java.lang.Object
  extended by moea.commons.Entity
      extended by moea.commons.Individual
          extended by moea.moga.genome.Chromosome
              extended by moea.moga.genome.ChromosomeWithMapping
                  extended by moea.moga.examples.ChowPaperCont

public class ChowPaperCont
extends ChromosomeWithMapping


Nested Class Summary
protected static class ChowPaperCont.KindOfFunction
           
 
Nested classes/interfaces inherited from class moea.moga.genome.ChromosomeWithMapping
ChromosomeWithMapping.MappingMethod
 
Field Summary
protected static double epsilon
           
protected static int K
           
protected static ChowPaperCont.KindOfFunction kindOfFunction
           
protected static int numTrials
           
protected static double xRL
           
protected static double xRU
           
 
Fields inherited from class moea.moga.genome.ChromosomeWithMapping
mapping, mappingMethod
 
Fields inherited from class moea.commons.Individual
M, x, xL, xU
 
Fields inherited from class moea.commons.Entity
N, objectiveVector, properties, scoresValid
 
Constructor Summary
ChowPaperCont()
           
ChowPaperCont(ChowPaperCont src)
           
 
Method Summary
static double bad(int parametro)
           
 ChowPaperCont clone()
           
 double[] decodeToReal()
           
 void evaluate()
           
 double ftrap(int d)
           
static void initializeProblem(java.lang.String[] args)
           
static boolean isOptimal(double fitness)
           
static double log2(double value)
           
static void main(java.lang.String[] args)
           
static void printStats(java.io.BufferedWriter out, int[] array, java.util.Map<java.lang.Integer,java.lang.Double> mapFit, java.util.Map<java.lang.Integer,java.lang.Integer> mapFitCount)
           
static double ugly(int parametro)
           
 
Methods inherited from class moea.moga.genome.ChromosomeWithMapping
crossover, mutate
 
Methods inherited from class moea.commons.Individual
getM, toString
 
Methods inherited from class moea.commons.Entity
compareTo, getN, getObjectiveVector, getProperty, invalidateScores, setProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kindOfFunction

protected static ChowPaperCont.KindOfFunction kindOfFunction

numTrials

protected static int numTrials

K

protected static int K

xRL

protected static double xRL

xRU

protected static double xRU

epsilon

protected static double epsilon
Constructor Detail

ChowPaperCont

public ChowPaperCont()

ChowPaperCont

public ChowPaperCont(ChowPaperCont src)
Method Detail

clone

public ChowPaperCont clone()
Specified by:
clone in class ChromosomeWithMapping

initializeProblem

public static void initializeProblem(java.lang.String[] args)
                              throws java.lang.Exception
Throws:
java.lang.Exception

evaluate

public void evaluate()
Specified by:
evaluate in class Entity

decodeToReal

public double[] decodeToReal()

printStats

public static void printStats(java.io.BufferedWriter out,
                              int[] array,
                              java.util.Map<java.lang.Integer,java.lang.Double> mapFit,
                              java.util.Map<java.lang.Integer,java.lang.Integer> mapFitCount)
                       throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

ftrap

public double ftrap(int d)

isOptimal

public static boolean isOptimal(double fitness)

log2

public static double log2(double value)

bad

public static double bad(int parametro)

ugly

public static double ugly(int parametro)