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 > >.SimpleHeuristic< Val extends Addable< Val >, U extends Addable< U > > Class Template Reference

This simple heuristic sets all lower bounds to zero, and should be used when running the original adopt. More...

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

Public Member Functions

 SimpleHeuristic (Preprocessing< Val, U > p)
 Constructor.
void init ()
MessageType getMsgType ()
void processDFSOutput (UtilitySolutionSpace< Val, U > space, List< String > constraint_variables, String var)
 Does nothing for the simple heuristics.
void processHeuristicsInfoMessage (UtilitySolutionSpace< Val, U > space, String var)
 Does nothing for the simple heuristics.
Preprocessing.PreprocessingHeuristic.VariableInfo< Val, U > getVariableInfo (String var)
HeuristicMsg< Val, U > createHeuristicInfoMessage (VariableInfo< Val, U > varInfo)
 Does nothing for the simple heuristics.
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.

Package Attributes

Preprocessing< Val, U > p
 A link to the parent class.
HashMap< String, VariableInfo< Val, U > > infos
 a map containing the information for all the variables

Detailed Description

This simple heuristic sets all lower bounds to zero, and should be used when running the original adopt.

Parameters
<Val>the type used for variable values
<U>the type used for utility values

Constructor & Destructor Documentation

◆ SimpleHeuristic()

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

Constructor.

Parameters
pA 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 > >.SimpleHeuristic< Val extends Addable< Val >, U extends Addable< U > >.createHeuristicInfoMessage ( VariableInfo< Val, U > varInfo)

Does nothing for the simple heuristics.

See also
Preprocessing.PreprocessingHeuristic#createHeuristicInfoMessage(VariableInfo)

◆ getMsgType()

MessageType frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.SimpleHeuristic< 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 > >.SimpleHeuristic< 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 > >.SimpleHeuristic< Val extends Addable< Val >, U extends Addable< U > >.init ( )

◆ processDFSOutput()

void frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.SimpleHeuristic< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput ( UtilitySolutionSpace< Val, U > space,
List< String > constraint_variables,
String var )

Does nothing for the simple heuristics.

See also
Preprocessing.PreprocessingHeuristic.processDFSOutput(UtilitySolutionSpace, java.util.List, String)

◆ processHeuristicsInfoMessage()

void frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.SimpleHeuristic< Val extends Addable< Val >, U extends Addable< U > >.processHeuristicsInfoMessage ( UtilitySolutionSpace< Val, U > space,
String var )

Does nothing for the simple heuristics.

See also
Preprocessing.PreprocessingHeuristic.processHeuristicsInfoMessage(UtilitySolutionSpace, java.lang.String)

Member Data Documentation

◆ infos

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

a map containing the information for all the variables

Referenced by getVariableInfo(), and init().

◆ p

Preprocessing<Val, U> frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.SimpleHeuristic< Val extends Addable< Val >, U extends Addable< U > >.p
package

A link to the parent class.

Referenced by init(), and SimpleHeuristic().


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