coreEngine.Calibration.Populations

## Class ConstrCap2Pop

- java.lang.Object
- - coreEngine.Calibration.Population
  - - coreEngine.Calibration.Populations.ConstrCap2Pop

-     public class ConstrCap2Pop
      extends Population

  Author:
    jltrask

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class coreEngine.Calibration.Population

      `Population.GAWorker`

  - ### Field Summary

    - ### Fields inherited from class coreEngine.Calibration.Population

      `adjustBasisPct, alg, bestFitness, currGenerationBestFitness, generation, generationIdx, MAIN_AADT, minAllowRange, numPreserved, numSelected, OFR_AADT, ONR_AADT, popSizes, prevGen, printSeg, results, seed, topBestOrg, topOrgs, totalPopSize`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstrCap2Pop(GeneticAlgorithm alg, Seed[] seed, int popSize)`
    `ConstrCap2Pop(GeneticAlgorithm alg, Seed[] seed, int popSize, java.util.List<Result> results)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `adjustSearchSpace(SearchSpace ssh)`
    `protected Seed` | `applySolutionToSeed()`
    `protected void` | `assignAllAFs()`
    `void` | `computeRanges()`
    `protected void` | `crossover()`
    `void` | `earthquake()`
    `void` | `populate()`
    `void` | `repopulateFromAdjustedSS()`
    `void` | `repopulateFromTopOrgs()`

    - ### Methods inherited from class coreEngine.Calibration.Population

      `adaptParameters, analyzeResults, calcAllFitnessParallel, calcAllFitnessSeq, calcPopulationDiversity, elitism, evaluate, getBestFitness, getCurrGenerationBestFitness, getSeed, getSize, getSolutionSeed, getStartSeedBaseFitness, getTopBestOrganism, getTopOrganisms, isOptimalToTol, mutate, preserve, printResults, runGeneration`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConstrCap2Pop

          public ConstrCap2Pop(GeneticAlgorithm alg,
                               Seed[] seed,
                               int popSize)

      Parameters:
        `alg` - Genetic Algorithm instance with which the population is associated
        `seed` - Length 1 array of seeds
        `popSize` - Number of organisms in each population generation

    - #### ConstrCap2Pop

          public ConstrCap2Pop(GeneticAlgorithm alg,
                               Seed[] seed,
                               int popSize,
                               java.util.List<Result> results)

      Parameters:
        `alg` - Genetic Algorithm instance with which the population is associated
        `seed` - Length 1 array of seeds
        `popSize` - Number of organisms in each population generation
        `results` - Results list

  - ### Method Detail

    - #### populate

          public void populate()

      Specified by:
        `populate` in class `Population`

    - #### crossover

          protected void crossover()

      Specified by:
        `crossover` in class `Population`

    - #### earthquake

          public void earthquake()

      Specified by:
        `earthquake` in class `Population`

    - #### assignAllAFs

          protected void assignAllAFs()

      Overrides:
        `assignAllAFs` in class `Population`

    - #### applySolutionToSeed

          protected Seed applySolutionToSeed()

      Specified by:
        `applySolutionToSeed` in class `Population`

    - #### repopulateFromAdjustedSS

          public void repopulateFromAdjustedSS()

      Specified by:
        `repopulateFromAdjustedSS` in class `Population`

    - #### repopulateFromTopOrgs

          public void repopulateFromTopOrgs()

      Specified by:
        `repopulateFromTopOrgs` in class `Population`

    - #### computeRanges

          public void computeRanges()

      Specified by:
        `computeRanges` in class `Population`

    - #### adjustSearchSpace

          public void adjustSearchSpace(SearchSpace ssh)

      Specified by:
        `adjustSearchSpace` in class `Population`