|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.moses.process.GeneticAlgorithm
uk.ac.leeds.ccg.andyt.projects.moses.process.GeneticAlgorithm_ISARHP_ISARCEP
public class GeneticAlgorithm_ISARHP_ISARCEP
Field Summary |
---|
Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.process.GeneticAlgorithm |
---|
_CASDataRecord, _CASKS002DataRecord, _ConvergenceThreshold, _FitnessCounts, _IndividualCensus, _InitialPopulationSize, _MaxNumberOfMutationsPerChild, _MaxNumberOfMutationsPerParent, _MaxNumberOfSolutions, _NumberOfOptimisationIterations, _Random, _RandomSeed |
Constructor Summary | |
---|---|
GeneticAlgorithm_ISARHP_ISARCEP(CASDataRecord aCASDataRecord)
Creates a new instance of GeneticAlgorithm |
|
GeneticAlgorithm_ISARHP_ISARCEP(IndividualCensus_ISARHP_ISARCEP _IndividualCensus_ISARHP_ISARCEP,
CASDataRecord _CASDataRecord)
Creates a new instance of GeneticAlgorithm |
Method Summary | |
---|---|
protected static void |
addToCountsCEP(ISARDataRecord aISARDataRecord,
java.util.HashMap tSARCounts,
java.util.Random a_Random)
aISARDataRecord does not comprise part of Household Population |
protected static void |
addToCountsHP(ISARDataRecord aISARDataRecord,
java.util.HashMap tSARCounts,
java.util.Random a_Random)
ISARDataRecord aISARDataRecord is assumed to comprise part of Household Population |
void |
exchangeCEPISARDataRecords(java.util.HashMap tCEP_Age_Vector_HashMap,
java.util.Vector tCEP_Vector,
java.util.HashSet dataRecordsIndexesToSwapHashSet)
Exchanges some ISARDataRecords in tCEP_Age_Vector_HashMap ensuring constraints are met. |
void |
exchangeHPHRPISARDataRecords(java.util.HashMap tHPHRP_Age_Vector_HashMap,
java.util.Vector tHPHRP_Vector,
java.util.HashSet dataRecordsIndexesToSwapHashSet)
Exchanges some ISARDataRecords in tHPHRP_AgeSexType_Vector_HashMap ensuring constraints are met. |
void |
exchangeHPNonHRPISARDataRecords(java.util.Vector tHPNonHRP_Vector,
java.util.HashSet dataRecordsIndexesToSwapHashSet)
Exchanges some ISARDataRecords in tHPNonHRP_Vector. |
java.math.BigDecimal |
getFitness(java.lang.Object[] tConstraintsAndPopulation_ISARHP_ISARCEP)
|
java.lang.Object[] |
getFitnessCounts()
|
static java.lang.Object[] |
getFitnessCounts(CASDataRecord a_CASDataRecord)
|
java.lang.Object[] |
getOptimisedResult_ObjectArray()
|
java.lang.Object[] |
getOptimisedResult_ObjectArray(java.util.TreeMap existingSolutions_TreeMap)
|
static java.util.Vector<java.lang.String> |
getVariableList()
|
static java.lang.String[] |
getVariables()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneticAlgorithm_ISARHP_ISARCEP(CASDataRecord aCASDataRecord)
public GeneticAlgorithm_ISARHP_ISARCEP(IndividualCensus_ISARHP_ISARCEP _IndividualCensus_ISARHP_ISARCEP, CASDataRecord _CASDataRecord)
Method Detail |
---|
public java.lang.Object[] getOptimisedResult_ObjectArray()
public java.lang.Object[] getOptimisedResult_ObjectArray(java.util.TreeMap existingSolutions_TreeMap)
existingSolutions_TreeMap
- A TreeMap of solutions in the same format as what is returned.
public void exchangeCEPISARDataRecords(java.util.HashMap tCEP_Age_Vector_HashMap, java.util.Vector tCEP_Vector, java.util.HashSet dataRecordsIndexesToSwapHashSet)
public void exchangeHPNonHRPISARDataRecords(java.util.Vector tHPNonHRP_Vector, java.util.HashSet dataRecordsIndexesToSwapHashSet)
public void exchangeHPHRPISARDataRecords(java.util.HashMap tHPHRP_Age_Vector_HashMap, java.util.Vector tHPHRP_Vector, java.util.HashSet dataRecordsIndexesToSwapHashSet)
public java.math.BigDecimal getFitness(java.lang.Object[] tConstraintsAndPopulation_ISARHP_ISARCEP)
tConstraintsAndPopulation_ISARHP_ISARCEP
- An Object[]:
tConstraintsAndPopulation_ISARHP_ISARCEP[0] constraints:
constraints[0] = constraintCAS003HPHRPAgeFemaleCount_HashMap;
constraints[1] = constraintCAS003HPHRPAgeMaleCount_HashMap;
constraints[2] = constraintCAS001CEPAgeFemaleCount3_HashMap;
constraints[3] = constraintCAS001CEPAgeMaleCount3_HashMap;
tConstraintsAndPopulation_ISARHP_ISARCEP[2] population:
population[0] = tHPHRPFemale_AgeSexType_Vector_HashMap;
population[1] = tHPHRPFemale_Vector;
population[2] = tHPHRPMale_AgeSexType_Vector_HashMap;
population[3] = tHPHRPMale_Vector;
population[4] = tHPNonHRP_Vector;
population[5] = tCEPFemale_AgeSexType_Vector_HashMap;
population[6] = tCEPFemale_Vector;
population[7] = tCEPMale_AgeSexType_Vector_HashMap;
population[8] = tCEPMale_Vector;
protected static void addToCountsCEP(ISARDataRecord aISARDataRecord, java.util.HashMap tSARCounts, java.util.Random a_Random)
aISARDataRecord
- The ISARDataRecord to be accounted for in tSARCountstSARCounts
- A HashMap of Aggregate Countsprotected static void addToCountsHP(ISARDataRecord aISARDataRecord, java.util.HashMap tSARCounts, java.util.Random a_Random)
aISARDataRecord
- The ISARDataRecord that will be accounted for in tSARCountstSARCounts
- HashMap of aggregate counts.public static java.lang.Object[] getFitnessCounts(CASDataRecord a_CASDataRecord)
public java.lang.Object[] getFitnessCounts()
public static java.lang.String[] getVariables()
public static java.util.Vector<java.lang.String> getVariableList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |