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

A DCOP solver using P-DPOP. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >:

Public Member Functions

 P_DPOPsolver ()
 Default Constructor.
 P_DPOPsolver (boolean useTCP)
 Constructor.
 P_DPOPsolver (Class< V > domClass)
 Constructor.
 P_DPOPsolver (Class< V > domClass, boolean useTCP)
 Constructor.
 P_DPOPsolver (String agentDescFile, Class< V > domClass)
 Constructor.
 P_DPOPsolver (String agentDescFile, Class< V > domClass, boolean useTCP)
 Constructor.
 P_DPOPsolver (String filename)
 Constructor.
 P_DPOPsolver (String filename, boolean useTCP)
 Constructor.
 P_DPOPsolver (Document agentDesc)
 Constructor.
 P_DPOPsolver (Document agentDesc, boolean useTCP)
 Constructor.
 P_DPOPsolver (Document agentDesc, Class< ? extends XCSPparser< V, AddableBigInteger > > parserClass)
 Constructor.
 P_DPOPsolver (Document agentDesc, Class< ? extends XCSPparser< V, AddableBigInteger > > parserClass, boolean useTCP)
 Constructor.
void setUtilClass (Class< AddableBigInteger > utilClass)
Public Member Functions inherited from frodo2.algorithms.dpop.DPOPsolver< V extends Addable< V >, U extends Addable< U > >
 DPOPsolver ()
 Default constructor.
 DPOPsolver (boolean useTCP)
 Constructor.
 DPOPsolver (String agentDescription)
 Constructor.
 DPOPsolver (String agentDescription, boolean useTCP)
 Constructor.
 DPOPsolver (Class< V > domClass, Class< U > utilClass)
 Constructor.
 DPOPsolver (Class< V > domClass, Class< U > utilClass, boolean useTCP)
 Constructor.
 DPOPsolver (Document agentDesc)
 Constructor.
 DPOPsolver (Document agentDesc, boolean useTCP)
 Constructor.
 DPOPsolver (Document agentDesc, Class< V > domClass, Class< U > utilClass)
 Constructor.
 DPOPsolver (Document agentDesc, Class< V > domClass, Class< U > utilClass, boolean useTCP)
 Constructor.
 DPOPsolver (Document agentDesc, Class< ? extends XCSPparser< V, U > > parserClass)
 Constructor.
 DPOPsolver (Document agentDesc, Class< ? extends XCSPparser< V, U > > parserClass, boolean useTCP)
 Constructor.
 DPOPsolver (String agentDescFile, Class< V > domClass, Class< U > utilClass)
 Constructor.
 DPOPsolver (String agentDescFile, Class< V > domClass, Class< U > utilClass, boolean useTCP)
 Constructor.
ArrayList< StatsReportergetSolGatherers ()
Solution< V, U > buildSolution ()
void clear ()
HashMap< String, DFSview< V, U > > getDFS ()
Public Member Functions inherited from frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >
 AbstractDCOPsolver (String agentDesc, boolean measureTime, boolean useTCP, boolean measureMsgs, Class<? extends XCSPparser< V, U > > parserClass, Class< V > domClass, Class< U > valuationClass)
 Constructor.
solve (Document problem, int nbrElectionRounds, boolean measureMsgs, Long timeout, boolean cleanAfterwards)
solve (DCOPProblemInterface< V, U > problem, int nbrElectionRounds, boolean measureMsgs, Long timeout, boolean cleanAfterwards)
solve (Document problem)
solve (DCOPProblemInterface< V, U > problem)
solve (Document problem, Long timeout)
solve (DCOPProblemInterface< V, U > problem, Long timeout)
solve (Document problem, boolean cleanAfterwards)
solve (DCOPProblemInterface< V, U > problem, boolean cleanAfterwards)
solve (Document problem, int nbrElectionRounds)
solve (DCOPProblemInterface< V, U > problem, int nbrElectionRounds)
solve (Document problem, int nbrElectionRounds, boolean measureMsgs)
solve (DCOPProblemInterface< V, U > problem, int nbrElectionRounds, boolean measureMsgs)
solve (Document problem, int nbrElectionRounds, boolean measureMsgs, Long timeout)
solve (DCOPProblemInterface< V, U > problem, int nbrElectionRounds, boolean measureMsgs, Long timeout)
solve (Document problem, int nbrElectionRounds, Long timeout)
solve (DCOPProblemInterface< V, U > problem, int nbrElectionRounds, Long timeout)
solve (Document problem, boolean cleanAfterwards, Long timeout)
solve (DCOPProblemInterface< V, U > problem, boolean cleanAfterwards, Long timeout) throws OutOfMemoryError
Public Member Functions inherited from frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >
void setProblem (P problem)
 Sets the problem.
void setFactory (AgentFactory< V, U > factory)
 Sets the agent factory.
void setDomClass (Class< V > domClass)
 Sets the class for variable values.
void setUtilClass (Class< U > utilClass)
 Sets the class for utility values.
Document getAgentDesc ()
abstract List<? extends StatsReportergetSolGatherers ()
abstract S buildSolution ()
solve (Document problem)
 Solves the input problem.
String plotStats (Solution< V, U > sol)
 Puts the statistics in a format that can easily be processed after the experiments.
String plotDummyStats (boolean maximize)
 Used when the solver was not able to solve the problem.

Protected Member Functions

void setNbrElectionRounds (int nbrElectionRounds)
Protected Member Functions inherited from frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >
String getFileHeader (Document problemFile)
 Returns the header for the output CSV file.
String getParamsHeader ()
String getParamsToLine ()
String getProbStats (Document problemFile, String probFilename)
 Parses the statistics about the problem instance.
String getTimeoutLine (String algoName, Document problemFile, String probFilename)
 Returns a timeout line for the output CSV file.
 AbstractDCOPsolver ()
 Dummy constructor.
 AbstractDCOPsolver (String agentDescFile)
 Constructor from an agent configuration file.
 AbstractDCOPsolver (String agentDescFile, boolean useTCP)
 Constructor from an agent configuration file.
 AbstractDCOPsolver (String agentDescFile, boolean useTCP, int shift)
 Constructor from an agent configuration file.
 AbstractDCOPsolver (Document agentDesc)
 Constructor.
void parseParams (String[] params)
 Parses solver parameters.
 AbstractDCOPsolver (Document agentDesc, boolean useTCP)
 Constructor.
 AbstractDCOPsolver (Document agentDesc, Class< ? extends XCSPparser< V, U > > parserClass)
 Constructor.
 AbstractDCOPsolver (Document agentDesc, Class< ? extends XCSPparser< V, U > > parserClass, boolean useTCP)
 Constructor.
void setProblemRescalerShift (int shift)
 Sets the shift parameter of the ProblemRescaler module (if used).
void overrideMsgTypes ()
 Overrides message types if necessary.
Protected Member Functions inherited from frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >
 AbstractSolver ()
 Dummy constructor.
void clear ()
 Clears the parser.

Additional Inherited Members

Static Public Member Functions inherited from frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >
static void main (String[] args) throws Exception
 Solves a problem and writes statistics to a file.
Protected Attributes inherited from frodo2.algorithms.dpop.DPOPsolver< V extends Addable< V >, U extends Addable< U > >
SolutionCollector< V, U > solCollector
 The solution collector.
UTILpropagation< V, U > utilModule
 The UTIL propagation module.
DFSgeneration< V, U > dfsModule
 The DFSgeneration module.
Protected Attributes inherited from frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >
Document agentDesc
 Description of the agent to be used.
AgentFactory< V, U > factory
 The agent factory.
Class< ? extends XCSPparser< V, U > > parserClass
 The class of the parser to be used.
List<? extends StatsReportersolGatherers
 The list of modules that record statistics about problem solving.
problem
 The problem.
final boolean useTCP
 Whether to use TCP pipes or shared memory pipes.

Detailed Description

A DCOP solver using P-DPOP.

Author
Eric Zbinden, Thomas Leaute
Parameters
<V>type used for variable values

Constructor & Destructor Documentation

◆ P_DPOPsolver() [1/12]

Default Constructor.

References P_DPOPsolver().

Referenced by P_DPOPsolver(), P_DPOPsolver(), and P_DPOPsolver().

Here is the call graph for this function:

◆ P_DPOPsolver() [2/12]

Constructor.

Parameters
useTCPwhether to use TCP pipes
Warning
Using TCP pipes automatically disables simulated time.

References P_DPOPsolver(), and frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.useTCP.

Here is the call graph for this function:

◆ P_DPOPsolver() [3/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( Class< V > domClass)

Constructor.

Parameters
domClassthe class to use for variable values

◆ P_DPOPsolver() [4/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( Class< V > domClass,
boolean useTCP )

Constructor.

Parameters
domClassthe class to use for variable values
useTCPwhether to use TCP pipes
Warning
Using TCP pipes automatically disables simulated time.

References frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.setDomClass(), setUtilClass(), and frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.useTCP.

Here is the call graph for this function:

◆ P_DPOPsolver() [5/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( String agentDescFile,
Class< V > domClass )

Constructor.

Parameters
agentDescFiledescription of the agent to be used
domClassthe class to be used for variable values

◆ P_DPOPsolver() [6/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( String agentDescFile,
Class< V > domClass,
boolean useTCP )

Constructor.

Parameters
agentDescFiledescription of the agent to be used
domClassthe class to be used for variable values
useTCPwhether to use TCP pipes
Warning
Using TCP pipes automatically disables simulated time.

References frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.useTCP.

◆ P_DPOPsolver() [7/12]

Constructor.

Parameters
filenamethe location of the agent description file

◆ P_DPOPsolver() [8/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( String filename,
boolean useTCP )

Constructor.

Parameters
filenamethe location of the agent description file
useTCPwhether to use TCP pipes
Warning
Using TCP pipes automatically disables simulated time.

References P_DPOPsolver(), and frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.useTCP.

Here is the call graph for this function:

◆ P_DPOPsolver() [9/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( Document agentDesc)

Constructor.

Parameters
agentDescdescription of the agent to be used

References frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.agentDesc.

◆ P_DPOPsolver() [10/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( Document agentDesc,
boolean useTCP )

Constructor.

Parameters
agentDescdescription of the agent to be used
useTCPwhether to use TCP pipes
Warning
Using TCP pipes automatically disables simulated time.

References frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.agentDesc, and frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.useTCP.

◆ P_DPOPsolver() [11/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( Document agentDesc,
Class< ? extends XCSPparser< V, AddableBigInteger > > parserClass )

Constructor.

Parameters
agentDescdescription of the agent to be used
parserClassthe class used to parse problems

References frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.agentDesc, and frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.parserClass.

◆ P_DPOPsolver() [12/12]

frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.P_DPOPsolver ( Document agentDesc,
Class< ? extends XCSPparser< V, AddableBigInteger > > parserClass,
boolean useTCP )

Constructor.

Parameters
agentDescdescription of the agent to be used
parserClassthe class used to parse problems
useTCPwhether to use TCP pipes
Warning
Using TCP pipes automatically disables simulated time.

References frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.agentDesc, frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.parserClass, and frodo2.algorithms.AbstractSolver< DCOPProblemInterface< V, U >, V, U, S >.useTCP.

Member Function Documentation

◆ setNbrElectionRounds()

◆ setUtilClass()

void frodo2.algorithms.dpop.privacy.P_DPOPsolver< V extends Addable< V > >.setUtilClass ( Class< AddableBigInteger > utilClass)
See also
DPOPsolver.setUtilClass(java.lang.Class)

References frodo2.solutionSpaces.crypto.AddableBigInteger.equals().

Referenced by P_DPOPsolver().

Here is the call graph for this function:

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