FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > > Class Template Reference

Implementation of the DP2 heuristic. More...

Inheritance diagram for frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >:

Classes

class  VariableInfo
 Convenience class that contains information on a specific variable. More...

Public Member Functions

 DP2 (Preprocessing< Val, U > p)
 Constructor.
MessageType getMsgType ()
void init ()
 Initializes variables.
void processDFSOutput (UtilitySolutionSpace< Val, U > space, List< String > constraint_variables, String var)
void processHeuristicsInfoMessage (UtilitySolutionSpace< Val, U > space, String var)
Preprocessing.PreprocessingHeuristic.VariableInfo< Val, U > getVariableInfo (String var)
HeuristicMsg< Val, U > createHeuristicInfoMessage (PreprocessingHeuristic.VariableInfo< Val, U > var)
Public Member Functions inherited from frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.PreprocessingHeuristic< Val, U >
void init ()
 Initializes the variableInfo container.
MessageType getMsgType ()
 Report the messages this heuristic shall be listening to.
VariableInfo< Val, U > getVariableInfo (String var)
 Returns the variable info for var.
void processDFSOutput (UtilitySolutionSpace< Val, U > space, List< String > constraint_variables, String var)
 Method to process a space controlled by this variable.
void processHeuristicsInfoMessage (UtilitySolutionSpace< Val, U > space, String var)
 Method to process a space received from a child.
HeuristicMsg< Val, U > createHeuristicInfoMessage (VariableInfo< Val, U > varInfo)
 Creates the heuristics information message by taking the join of h and c, and projecting out its own variable.

Static Public Attributes

static final MessageType HEURISTIC_INFO_TYPE = new MessageType ("ADOPT", "Preprocessing", "DP2 heuristic info")
 The type of the heuristic message send by this heuristic.

Private Attributes

Preprocessing< Val, U > p
 A link to the parent class.
HashMap< String, VariableInfoinfos
 Map to the information belonging to different variables.

Detailed Description

Implementation of the DP2 heuristic.

Author
Brammert Ottens, 27 mei 2009
Parameters
<Val>the type used to represent domain elements
<U>the type used to represent utility values

Constructor & Destructor Documentation

◆ DP2()

frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.DP2 ( Preprocessing< Val, U > p)

Constructor.

Parameters
pthe link to the parent class

References p, and frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.Preprocessing().

Here is the call graph for this function:

Member Function Documentation

◆ createHeuristicInfoMessage()

HeuristicMsg< Val, U > frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage ( PreprocessingHeuristic.VariableInfo< Val, U > var)

◆ getMsgType()

MessageType frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.getMsgType ( )

◆ getVariableInfo()

Preprocessing.PreprocessingHeuristic.VariableInfo< Val, U > frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.getVariableInfo ( String var)

◆ init()

void frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.init ( )

Initializes variables.

Author
Brammert Ottens, 21 mei 2009

References infos, and p.

◆ processDFSOutput()

◆ processHeuristicsInfoMessage()

Member Data Documentation

◆ HEURISTIC_INFO_TYPE

final MessageType frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.HEURISTIC_INFO_TYPE = new MessageType ("ADOPT", "Preprocessing", "DP2 heuristic info")
static

The type of the heuristic message send by this heuristic.

Referenced by createHeuristicInfoMessage(), and getMsgType().

◆ infos

HashMap<String, VariableInfo> frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.infos
private

Map to the information belonging to different variables.

Referenced by getVariableInfo(), init(), processDFSOutput(), and processHeuristicsInfoMessage().

◆ p


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