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

An optimal solution to the problem. More...

Inheritance diagram for frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >:

Public Member Functions

 ASODPOPsolution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraint, HashMap< String, ArrayList< CurrentAssignment< V > > > assignmentHistories, double averageTreeFillPercentage, int treeWidth, double dummyFillPercentage, double numberOfDummies, int specUTILmsgs, int totalUTILmsgs)
 Constructor.
HashMap< String, ArrayList< CurrentAssignment< V > > > getAssignmentHistories ()
int getSpecUTILmsgs ()
int getUTILmsgs ()
Public Member Functions inherited from frodo2.algorithms.odpop.ODPOPsolution< V, U >
 ODPOPsolution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraints, double averageTreeFillPercentage)
 Constructor.
 ODPOPsolution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraints, double averageTreeFillPercentage, double percentageOfGoodsSent, U maximalCutSum)
 Constructor.
 ODPOPsolution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraints, double averageTreeFillPercentage, double percentageOfGoodsSent, int treeWidth, double dummyFillPercentage, double numberOfDummies, U maximalCutSum)
 Constructor.
double getAverageFillTree ()
double getAverageDummyFillPercentage ()
double getAverageNumberOfDummies ()
double getPercentageOfGoodsSent ()
getMaximalCutSum ()
String toString ()
Public Member Functions inherited from frodo2.algorithms.Solution< V, U >
 Solution (U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, long totalMsgSize, long maxMsgSize, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes)
 Constructor.
 Solution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, long totalMsgSize, long maxMsgSize, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraints)
 Constructor.
 Solution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, long totalMsgSize, long maxMsgSize, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraints, int treeWidth)
 Constructor.
 Solution (U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, TreeMap< Object, Integer > msgsNbrsSentPerAgent, TreeMap< Object, Integer > msgsNbrsReceivedPerAgent, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, TreeMap< Object, Long > msgSizesSentPerAgent, TreeMap< Object, Long > msgSizesReveivedPerAgent, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes)
 Constructor.
 Solution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, TreeMap< Object, Integer > msgsNbrsSentPerAgent, TreeMap< Object, Integer > msgsNbrsReceivedPerAgent, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, TreeMap< Object, Long > msgSizesSentPerAgent, TreeMap< Object, Long > msgSizesReveivedPerAgent, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int numberOfCoordinationConstraints)
 Constructor.
 Solution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, TreeMap< Object, Integer > msgsNbrsSentPerAgent, TreeMap< Object, Integer > msgsNbrsReceivedPerAgent, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, TreeMap< Object, Long > msgSizesSentPerAgent, TreeMap< Object, Long > msgSizesReveivedPerAgent, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, HashMap< String, Long > moduleEndTimes, int treeWidth, int numberOfCoordinationConstraints)
 Constructor.
 Solution (int nbrVariables, U reportedUtil, U trueUtil, Map< String, V > assignments, int nbrMsgs, TreeMap< MessageType, Integer > msgNbrs, TreeMap< Object, Integer > msgsNbrsSentPerAgent, TreeMap< Object, Integer > msgsNbrsReceivedPerAgent, long totalMsgSize, TreeMap< MessageType, Long > msgSizes, TreeMap< Object, Long > msgSizesSentPerAgent, TreeMap< Object, Long > msgSizesReveivedPerAgent, long maxMsgSize, TreeMap< MessageType, Long > maxMsgSizes, long ncccCount, long timeNeeded, long cumulativelTime, HashMap< String, Long > moduleEndTimes, int treeWidth, int numberOfCoordinationConstraints)
 Constructor.
getReportedUtil ()
getUtility ()
void setUtility (U util)
 Sets the utility.
Map< String, V > getAssignments ()
long getNcccCount ()
int getNbrMsgs ()
void setNbrMsgs (int nbrMsgsNew)
 Sets the total number of messages.
long getTotalMsgSize ()
long getMaxMsgSize ()
void setTotalMsgSize (long totalMsgSizeNew)
 Sets the total amount of information exchanged.
long getTimeNeeded ()
long getTotalTime ()
void setTimeNeeded (long timeNeededNew)
 Sets the total runtime.
HashMap< String, Long > getTimesNeeded ()
TreeMap< MessageType, Long > getMsgSizes ()
TreeMap< MessageType, Long > getMaxMsgSizes ()
TreeMap< MessageType, Integer > getMsgNbrs ()
int getTreeWidth ()
int getNumberOfCoordinationConstraints ()
int getNbrVariables ()
String toLineString ()

Package Attributes

int specUILmsgs
 The total number of speculative UTIL messages that have been sent.
int totalUTILmsgs
 The total number of UTIL messages that have been sent.

Private Attributes

HashMap< String, ArrayList< CurrentAssignment< V > > > assignmentHistories
 The assignment history for all the agents.

Additional Inherited Members

Protected Attributes inherited from frodo2.algorithms.Solution< V, U >
reportedUtil
 The reported utility of the solution.
trueUtil
 The true utility of the solution.
Map< String, V > assignments
 For each variable, its assignment in the solution found to the problem.
long ncccCount
 The number of ncccs used.
long timeNeeded
 The time needed to solve the problem.
long cumulativeTime
 The cumulative time needed for all agents to find a solution.
HashMap< String, Long > moduleEndTimes
 For each module in the algorithm, the time at which it finished.
int nbrMsgs
 The number of messages sent by the algorithm.
long totalMsgSize
 The total amount of information sent by the algorithm (in bytes).
long maxMsgSize
 The size (in bytes) of the largest message.
TreeMap< MessageType, Integer > msgNbrs
 The total number of messages that has been sent per message type.
TreeMap< MessageType, Long > msgSizes
 The total amount of information that has been sent per message type.
TreeMap< MessageType, Long > maxMsgSizes
 For each message type, the size (in bytes) of the largest message of that type.
int treeWidth = -1
 The tree width of the tree on which the algorithm has run.

Detailed Description

An optimal solution to the problem.

Parameters
<V>type used for variable values
<U>type used for utility values
Author
Brammert Ottens, Thomas Leaute

Constructor & Destructor Documentation

◆ ASODPOPsolution()

frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.ASODPOPsolution ( int nbrVariables,
U reportedUtil,
U trueUtil,
Map< String, V > assignments,
int nbrMsgs,
TreeMap< MessageType, Integer > msgNbrs,
long totalMsgSize,
TreeMap< MessageType, Long > msgSizes,
long maxMsgSize,
TreeMap< MessageType, Long > maxMsgSizes,
long ncccCount,
long timeNeeded,
HashMap< String, Long > moduleEndTimes,
int numberOfCoordinationConstraint,
HashMap< String, ArrayList< CurrentAssignment< V > > > assignmentHistories,
double averageTreeFillPercentage,
int treeWidth,
double dummyFillPercentage,
double numberOfDummies,
int specUTILmsgs,
int totalUTILmsgs )

Constructor.

Parameters
nbrVariablesthe total number of variables occuring in the problem
reportedUtilthe reported optimal utility
trueUtilthe true optimal utility
assignmentsthe optimal assignments
nbrMsgsthe total number of messages that have been sent
msgNbrsthe number of messages per message type
totalMsgSizethe total amount of information that has been exchanged (in bytes)
msgSizesthe amount of information per message type
maxMsgSizethe size (in bytes) of the largest message
maxMsgSizesfor each message type, the size (in bytes) of the largest message of that type
ncccCountthe ncccs used
timeNeededthe time needed to solve the problem
moduleEndTimeseach module's end time
numberOfCoordinationConstraintthe number of constraints that contain variables that are owned by different agents
assignmentHistoriesthe history of variable assignments
averageTreeFillPercentagethe average percentage of the tree filled
treeWidththe tree width of the DFS tree
dummyFillPercentagethe average dummy fill percentage
numberOfDummiesthe total number of dummies
specUTILmsgsthe total number of speculative UTIL messages that have been sent
totalUTILmsgsthe total number of UTIL messages that have been sent

References assignmentHistories, frodo2.algorithms.Solution< V, U >.assignments, frodo2.algorithms.odpop.ODPOPsolution< V, U >.averageTreeFillPercentage, frodo2.algorithms.odpop.ODPOPsolution< V, U >.dummyFillPercentage, frodo2.algorithms.Solution< V, U >.maxMsgSize, frodo2.algorithms.Solution< V, U >.maxMsgSizes, frodo2.algorithms.Solution< V, U >.moduleEndTimes, frodo2.algorithms.Solution< V, U >.msgNbrs, frodo2.algorithms.Solution< V, U >.msgSizes, frodo2.algorithms.Solution< V, U >.nbrMsgs, frodo2.algorithms.Solution< V, U >.ncccCount, frodo2.algorithms.odpop.ODPOPsolution< V, U >.numberOfDummies, frodo2.algorithms.Solution< V, U >.reportedUtil, frodo2.algorithms.Solution< V, U >.timeNeeded, frodo2.algorithms.Solution< V, U >.totalMsgSize, totalUTILmsgs, frodo2.algorithms.Solution< V, U >.treeWidth, and frodo2.algorithms.Solution< V, U >.trueUtil.

Member Function Documentation

◆ getAssignmentHistories()

HashMap< String, ArrayList< CurrentAssignment< V > > > frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.getAssignmentHistories ( )
Returns
the history of variable assignments

Implements frodo2.algorithms.ConvergenceInterface< V extends Addable< V > >.

References assignmentHistories.

◆ getSpecUTILmsgs()

int frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.getSpecUTILmsgs ( )
Returns
the total number of speculative UTIL messages that have been sent

◆ getUTILmsgs()

int frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.getUTILmsgs ( )
Returns
the total number of UTIL messages that have been sent

Member Data Documentation

◆ assignmentHistories

HashMap<String, ArrayList<CurrentAssignment<V> > > frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.assignmentHistories
private

The assignment history for all the agents.

Referenced by ASODPOPsolution(), and getAssignmentHistories().

◆ specUILmsgs

int frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.specUILmsgs
package

The total number of speculative UTIL messages that have been sent.

◆ totalUTILmsgs

int frodo2.algorithms.asodpop.ASODPOPsolution< V extends Addable< V >, U >.totalUTILmsgs
package

The total number of UTIL messages that have been sent.

Referenced by ASODPOPsolution().


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