Documentation of 'ec.app.sum.Sum' Java class
Sum
ec.app.sum

Class Sum

  • All Implemented Interfaces:
    Prototype, Setup, SimpleProblemForm, java.io.Serializable, java.lang.Cloneable


    public class Sum
    extends Problem
    implements SimpleProblemForm
    Sum is a simple example of the ec.Vector package, implementing the very simple sum problem (fitness = sum over vector). This is a generalization of the common MaxOnes problem (fitness = number of 1's in vector).
    See Also:
    Serialized Form
    • Constructor Detail

      • Sum

        public Sum()
    • Method Detail

      • evaluate

        public void evaluate(EvolutionState state,
                             Individual ind,
                             int subpopulation,
                             int threadnum)
        Description copied from interface: SimpleProblemForm
        Evaluates the individual in ind, if necessary (perhaps not evaluating them if their evaluated flags are true), and sets their fitness appropriately.
        Specified by:
        evaluate in interface SimpleProblemForm

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.