FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo Class Reference

Information about an internal variable. More...

Inheritance diagram for frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo:

Private Member Functions

 VarInfo (String varName, String agent, ArrayList< FunctionNode< V, U > > functions)
 Constructor.
boolean doIrespond (String senderVar, UtilitySolutionSpace< V, U > marginalUtil)
 Returns whether to respond to this message.

Private Attributes

HashMap< String, UtilitySolutionSpace< V, U > > lastMsgsIn = new HashMap< String, UtilitySolutionSpace<V, U> > ()
 The last marginal utility received from each function node.
final int nbrNeighbors
 Number of neighboring function nodes.
int nbrIter
 The remaining number of iterations for this node.
V optVal
 The current optimal value for this variable.

Additional Inherited Members

Public Member Functions inherited from frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >
 VariableNode (String varName, String agent, V[] dom)
 Constructor.
String toString ()
void addFunction (FunctionNode< V, U > function)
 Adds a function in which this variable is involved.
String getVarName ()
V[] getDom ()
ArrayList< FunctionNode< V, U > > getFunctions ()
String getAgent ()
Protected Attributes inherited from frodo2.algorithms.varOrdering.factorgraph.VariableNode< V extends Addable< V >, U extends Addable< U > >
final String varName
 The name of this variable.
final V[] dom
 The domain of the variable.

Detailed Description

Information about an internal variable.

Constructor & Destructor Documentation

◆ VarInfo()

Member Function Documentation

◆ doIrespond()

boolean frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo.doIrespond ( String senderVar,
UtilitySolutionSpace< V, U > marginalUtil )
private

Returns whether to respond to this message.

Parameters
senderVarthe sender variable
marginalUtilthe received message
Returns
whether to respond or not

References frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.synchronous.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

Member Data Documentation

◆ lastMsgsIn

HashMap< String, UtilitySolutionSpace<V, U> > frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo.lastMsgsIn = new HashMap< String, UtilitySolutionSpace<V, U> > ()
private

The last marginal utility received from each function node.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ nbrIter

int frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo.nbrIter
private

The remaining number of iterations for this node.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().

◆ nbrNeighbors

final int frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo.nbrNeighbors
private

◆ optVal

V frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.VarInfo.optVal
private

The current optimal value for this variable.

Referenced by frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn().


The documentation for this class was generated from the following file: