From 4f26361eb08aa09334d1eea0a124110c20d809ce Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sat, 18 Oct 2014 15:21:45 +0200 Subject: Moved javadocs to a different repository for hosting, updated README --- .../modules/problem/DigitalCircuitProblem.html | 423 --------------------- 1 file changed, 423 deletions(-) delete mode 100644 doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html (limited to 'doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html') diff --git a/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html b/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html deleted file mode 100644 index 2eab7fe..0000000 --- a/doc/jcgp/backend/modules/problem/DigitalCircuitProblem.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - -DigitalCircuitProblem - - - - - - - - -
- - - - - - - -
- - - -
-
jcgp.backend.modules.problem
-

Class DigitalCircuitProblem

-
-
- -
-
    -
  • -
    -
    -
    public class DigitalCircuitProblem
    -extends TestCaseProblem<UnsignedInteger>
    -
    Digital circuit problem -

    - Using this problem type, digital logic circuits can be evolved. - parseData() must be used to load the desired circuit - truth table in the standard CGP .plu format.
    -
    -
    Author:
    -
    Eduardo Pedroni
    -
    See Also:
    -
    DigitalCircuitFunctions
    -
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        DigitalCircuitProblem

        -
        public DigitalCircuitProblem(Resources resources)
        -
        Construct a new instance of DigitalCircuitProblem.
        -
        -
        Parameters:
        -
        resources - a reference to the experiment's resources.
        -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        evaluate

        -
        public void evaluate(Population population)
        -
        Description copied from class: Problem
        -
        The most important method of the problem type. This is called once - per generation, when the new population has been generated. -

        - The basic functionality of this method is to loop through all chromosomes - in the population and decode them according to the problem type. The - fitness of each chromosome is then calculated using the problem data - or otherwise (subjective problem types such as art generation might - leave fitness evaluations up to the user) and assigned to the appropriate - chromosome. -

        - In addition, realisations of this method should update the value of - bestFitness as appropriate, since the value of this parameter is displayed - if a GUI is in use.
        -
        -
        Specified by:
        -
        evaluate in class Problem
        -
        Parameters:
        -
        population - the population to be evaluated.
        -
        -
      • -
      - - - -
        -
      • -

        parseTestCase

        -
        public TestCaseProblem.TestCase<UnsignedInteger> parseTestCase(java.lang.String[] inputs,
        -                                                               java.lang.String[] outputs)
        -
        Description copied from class: TestCaseProblem
        -
        This method is used internally by addTestCase() in order - to appropriately parse strings into the right data type for the - test cases. Since the data type is problem-dependent, subclasses must - implement this method. This method must return a built TestCase - object from the arguments given.
        -
        -
        Parameters:
        -
        inputs - the inputs represented as strings.
        -
        outputs - the outputs represented as strings.
        -
        Returns:
        -
        the parsed test case.
        -
        -
      • -
      - - - -
        -
      • -

        hasPerfectSolution

        -
        public int hasPerfectSolution(Population population)
        -
        Description copied from class: Problem
        -
        Used to assert whether a given population contains a perfect solution - to the problem. It is up to the problem to define what qualifies - a perfect solution, as some problems (subject ones such as music and - art evolution, for example) might not have perfect solutions at all.
        -
        -
        Specified by:
        -
        hasPerfectSolution in class Problem
        -
        Parameters:
        -
        population - the population to search through for a perfect chromosome.
        -
        Returns:
        -
        the perfect solution index, if one exits, -1 if no perfect solution was found.
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - -
- - - - - - - -
- - - - -- cgit v1.2.3