|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.CommandLineUtility
org.moeaframework.util.ReferenceSetMerger
public class ReferenceSetMerger
Utility for merging two or more populations identified by unique sources and determining the contribution of each source to the combined non-dominated population. A command line interface is also provided.
| Field Summary | |
|---|---|
static String |
SOURCE_ATTRIBUTE
The attribute key used to store the file from which each solution originated. |
| Constructor Summary | |
|---|---|
ReferenceSetMerger()
Class constructor for merging populations and determining which contributed to the resulting non-dominated population. |
|
ReferenceSetMerger(NondominatedPopulation combinedPopulation)
Class constructor for merging population and determining which contributed to the resulting non-dominated population. |
|
| Method Summary | |
|---|---|
void |
add(String source,
Population population)
Adds the population from the specified source. |
NondominatedPopulation |
getCombinedPopulation()
Returns the combined non-dominated population. |
NondominatedPopulation |
getContributionFrom(String source)
Returns the solutions in the combined non-dominated population originating from the specified source. |
org.apache.commons.cli.Options |
getOptions()
Returns the options made available by this command line utility. |
Population |
getPopulation(String source)
Returns the original population associated with the specified source. |
Set<String> |
getSources()
Returns the sources that have been added to the combined non-dominated population. |
static void |
main(String[] args)
Starts the command line utility for merging two or more sets. |
void |
run(org.apache.commons.cli.CommandLine commandLine)
Runs this command line utility with the specified command line arguments. |
| Methods inherited from class org.moeaframework.util.CommandLineUtility |
|---|
getCommandString, setCommandString, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCE_ATTRIBUTE
| Constructor Detail |
|---|
public ReferenceSetMerger()
public ReferenceSetMerger(NondominatedPopulation combinedPopulation)
combinedPopulation - an (empty) population for maintaining
non-dominated solutions| Method Detail |
|---|
public void add(String source,
Population population)
source - the source of the populationpopulation - the population
IllegalArgumentException - if a population has been added
previously with the specified sourcepublic NondominatedPopulation getCombinedPopulation()
public Set<String> getSources()
public Population getPopulation(String source)
source - the source
public NondominatedPopulation getContributionFrom(String source)
source - the source whose solutions in the combined non-dominated
population are returned
public org.apache.commons.cli.Options getOptions()
CommandLineUtility-h,--help option.
Implementations overriding this method and begin with a call to
super.getOptions().
getOptions in class CommandLineUtility
public void run(org.apache.commons.cli.CommandLine commandLine)
throws Exception
CommandLineUtility
run in class CommandLineUtilitycommandLine - the command line arguments
Exception
public static void main(String[] args)
throws Exception
args - the command line arguments
Exception - if an error occurred
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||