|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A factor graph generator. More...

Public Member Functions | |
| FactorGraphGen (DCOPProblemInterface< V, U > problem, Element params) | |
| Constructor. | |
| FactorGraphGen (Element params, DCOPProblemInterface< V, U > problem) | |
| Constructor in stats gatherer mode. | |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| Collection< MessageType > | getMsgTypes () |
| void | getStatsFromQueue (Queue queue) |
| void | setSilent (boolean silent) |
| void | reset () |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Static Public Attributes | |
| static final MessageType | OUTPUT_MSG_TYPE = new MessageType ("VarOrdering", "FactorGraphGen", "FactorGraph") |
| The type of the output message. | |
Private Member Functions | |
| String | factorGraphToDOT (final boolean addUnaryConstraints) |
Private Attributes | |
| DCOPProblemInterface< V, U > | problem |
| The problem. | |
| Queue | queue |
| This agent's queue. | |
| final boolean | compile |
| Whether the agent must compile all its function nodes into one. | |
| final double | maxPerturb |
| The maximum amplitude of the perturbation unary constraints. | |
| final String | VAR_PREFIX = "var_" |
| The prefix appended to variable node names to avoid name clashes with function node names. | |
| final String | FUNC_PREFIX = "func_" |
| The prefix appended to function node names to avoid name clashes with variable node names. | |
A factor graph generator.
| <V> | the type used for variable values |
| <U> | the type used for utility values in stats gatherer mode |
| frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.FactorGraphGen | ( | DCOPProblemInterface< V, U > | problem, |
| Element | params ) |
Constructor.
| problem | this agent's problem |
| params | the parameters for this module |
References problem.
| frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.FactorGraphGen | ( | Element | params, |
| DCOPProblemInterface< V, U > | problem ) |
Constructor in stats gatherer mode.
| params | the parameters |
| problem | the overall problem |
References factorGraphToDOT(), and problem.

|
private |
| addUnaryConstraints | whether to add unary perturbation constraints |
References FUNC_PREFIX, frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgentNeighborhoods(), frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgents(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getOwner(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getVariables(), and VAR_PREFIX.
Referenced by FactorGraphGen().

| Collection< MessageType > frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.getMsgTypes | ( | ) |
| void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue | ( | Queue | queue | ) |
Implements frodo2.algorithms.StatsReporter.
References queue.
| void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >.addFunction(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.addUnarySpace(), frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgent(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgentNeighborhoods(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getDomain(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getOwner(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.getZeroUtility(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.join(), OUTPUT_MSG_TYPE, and frodo2.communication.Queue.sendMessageToSelf().

| void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.reset | ( | ) |
Implements frodo2.algorithms.StatsReporter.
| void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
| void frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.setSilent | ( | boolean | silent | ) |
Implements frodo2.algorithms.StatsReporter.
|
private |
Whether the agent must compile all its function nodes into one.
|
private |
The prefix appended to function node names to avoid name clashes with variable node names.
Referenced by factorGraphToDOT().
|
private |
The maximum amplitude of the perturbation unary constraints.
|
static |
The type of the output message.
Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.getMsgTypes(), frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn(), and notifyIn().
|
private |
The problem.
Referenced by FactorGraphGen(), and FactorGraphGen().
|
private |
This agent's queue.
Referenced by getStatsFromQueue(), and setQueue().
|
private |
The prefix appended to variable node names to avoid name clashes with function node names.
Referenced by factorGraphToDOT().