Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#ELITISM_RATE
The following examples show how to use
org.apache.commons.math3.exception.util.LocalizedFormats#ELITISM_RATE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 6 votes |
/** * Creates a new ElitisticListPopulation instance. * * @param chromosomes list of chromosomes in the population * @param populationLimit maximal size of the population * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public ElitisticListPopulation(final List<Chromosome> chromosomes, final int populationLimit, final double elitismRate) { // start of generated patch super(chromosomes,populationLimit); if(elitismRate<0||elitismRate>1){ throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE,elitismRate,0,1); } this.elitismRate=elitismRate; // end of generated patch /* start of original code super(chromosomes, populationLimit); this.elitismRate = elitismRate; end of original code*/ }
Example 2
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 6 votes |
/** * Creates a new ElitisticListPopulation instance. * * @param chromosomes list of chromosomes in the population * @param populationLimit maximal size of the population * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public ElitisticListPopulation(final List<Chromosome> chromosomes, final int populationLimit, final double elitismRate) { // start of generated patch super(chromosomes,populationLimit); if(elitismRate<0||elitismRate>1){ throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE,elitismRate,0,1); } this.elitismRate=elitismRate; // end of generated patch /* start of original code super(chromosomes, populationLimit); this.elitismRate = elitismRate; end of original code*/ }
Example 3
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) throws OutOfRangeException { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 4
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 5 votes |
/** * Creates a new ListPopulation instance and initializes its inner * chromosome list. * * @param populationLimit maximal size of the population * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public ElitisticListPopulation(final int populationLimit, final double elitismRate) { // start of generated patch super(populationLimit); if(elitismRate<0||elitismRate>1){ throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE,elitismRate,0,1); } this.elitismRate=elitismRate; // end of generated patch /* start of original code super(populationLimit); this.elitismRate = elitismRate; end of original code*/ }
Example 5
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) throws OutOfRangeException { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 6
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) throws OutOfRangeException { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 7
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 5 votes |
/** * Creates a new ListPopulation instance and initializes its inner * chromosome list. * * @param populationLimit maximal size of the population * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public ElitisticListPopulation(final int populationLimit, final double elitismRate) { // start of generated patch super(populationLimit); if(elitismRate<0||elitismRate>1){ throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE,elitismRate,0,1); } this.elitismRate=elitismRate; // end of generated patch /* start of original code super(populationLimit); this.elitismRate = elitismRate; end of original code*/ }
Example 8
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) throws OutOfRangeException { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 9
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) throws OutOfRangeException { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 10
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) throws OutOfRangeException { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 11
Source File: Math_35_ElitisticListPopulation_t.java From coming with MIT License | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 12
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 13
Source File: ElitisticListPopulation.java From astor with GNU General Public License v2.0 | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 14
Source File: Math_35_ElitisticListPopulation_s.java From coming with MIT License | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 15
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 16
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 17
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }
Example 18
Source File: 1_ElitisticListPopulation.java From SimFix with GNU General Public License v2.0 | 3 votes |
/** * Sets the elitism rate, i.e. how many best chromosomes will be directly * transferred to the next generation [in %]. * * @param elitismRate how many best chromosomes will be directly transferred to the * next generation [in %] * @throws OutOfRangeException if the elitism rate is outside the [0, 1] range */ public void setElitismRate(final double elitismRate) { if (elitismRate < 0 || elitismRate > 1) { throw new OutOfRangeException(LocalizedFormats.ELITISM_RATE, elitismRate, 0, 1); } this.elitismRate = elitismRate; }