|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A random problem generator for the party game. More...
Classes | |
| enum | Method |
| The method used to formulate the game as a DisCSP. More... | |
| class | PartyInstance |
| An instance of a party game. More... | |
Static Public Member Functions | |
| static Element | createStats (String name, String value) |
| Creates a "stats" element. | |
| static Document | generateAcyclicProblem (int nbrPlayers, int branchingFactor, double epsilon, boolean mixed, Method method, boolean intensional) |
| Generates an instance based on an acyclic graph. | |
| static Document | generateChordalProblem (int nbrPlayers, double rateOfChords, double epsilon, boolean mixed, Method method, boolean intensional) |
| Generates an instance based on a chordal graph. | |
| static Document | generateRingProblem (int nbrPlayers, double epsilon, boolean mixed, Method method, boolean intensional) |
| Generates an instance based on a ring graph. | |
| static Document | generateGridProblem (int side, double epsilon, boolean mixed, Method method, boolean intensional) |
| Generates an instance based on a square grid. | |
| static PartyInstance | generateProblem (Graph graph) |
| Generates a random instance of the party game. | |
| static Document | encodeProblem (PartyInstance party, final Method method, final boolean intensional) |
| Encodes a party game instance as a DisCSP in XCSP format. | |
| static void | main (String[] args) throws IOException |
| Write a random problem to a file. | |
Static Protected Member Functions | |
| static Document | encodeProblem (PartyInstance party, double epsilon, final boolean mixed, final Method method, final boolean intensional) |
| Encodes a party game instance as a DisCSP in XCSP format. | |
Static Private Member Functions | |
| static Document | encodeProblem (PartyInstance party, double epsilon, double tau, final boolean mixed, final Method method, final boolean intensional) |
| Encodes a party game instance as a DisCSP in XCSP format. | |
A random problem generator for the party game.
The party game is described in the following paper: Satinder Singh, Vishal Soni, and Michael P. Wellman. Computing approximate Bayes-Nash equilibria in tree-games of incomplete information. In Jack S. Breese, Joan Feigenbaum, and Margo I. Seltzer, editors, Proceedings of the Fifth ACM Conference on Electronic Commerce (EC'04), pages 81-90, New York, NY, USA, May 17-20 2004. ACM.
|
static |
Creates a "stats" element.
| name | the value of the "name" attribute |
| value | the text |
Referenced by encodeProblem().
|
staticprivate |
Encodes a party game instance as a DisCSP in XCSP format.
| party | the party instance |
| epsilon | the margin used for approximate equilibria |
| tau | the probability discretization parameter for mixed strategies |
| mixed | whether to allow mixed strategies |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
References createStats(), frodo2.solutionSpaces.AddableReal.doubleValue(), encodeProblem(), frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V extends Addable< V >, U extends Serializable >.getNbrSolutions(), frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V extends Addable< V >, U extends Serializable >.hasNext(), frodo2.benchmarks.party.PartyGame.Method.Leaute11, frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V extends Addable< V >, U extends Serializable >.nextSolution(), frodo2.benchmarks.party.PartyGame.Method.Soni07, and frodo2.benchmarks.party.PartyGame.Method.Vickrey02.

|
staticprotected |
Encodes a party game instance as a DisCSP in XCSP format.
| party | the party instance |
| epsilon | the margin used for approximate equilibria |
| mixed | whether to allow mixed strategies |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
References encodeProblem().

|
static |
Encodes a party game instance as a DisCSP in XCSP format.
| party | the party instance |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
0.0, and mixed to false References encodeProblem().
Referenced by encodeProblem(), encodeProblem(), encodeProblem(), generateAcyclicProblem(), generateChordalProblem(), generateGridProblem(), generateRingProblem(), and main().

|
static |
Generates an instance based on an acyclic graph.
| nbrPlayers | the number of players |
| branchingFactor | each node has at most (branchingFactor + 1) neighbors |
| epsilon | the margin used for approximate equilibria |
| mixed | whether to allow mixed strategies |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
References encodeProblem(), generateProblem(), and frodo2.algorithms.RandGraphFactory.getAcyclicGraph().

|
static |
Generates an instance based on a chordal graph.
| nbrPlayers | the number of players |
| rateOfChords | rateOfChords % of the edges are chords |
| epsilon | the margin used for approximate equilibria |
| mixed | whether to allow mixed strategies |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
References encodeProblem(), generateProblem(), and frodo2.algorithms.RandGraphFactory.getChordalGraph().

|
static |
Generates an instance based on a square grid.
| side | the graph contains side*side players |
| epsilon | the margin used for approximate equilibria |
| mixed | whether to allow mixed strategies |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
References encodeProblem(), generateProblem(), and frodo2.algorithms.RandGraphFactory.getSquareGrid().

|
static |
Generates a random instance of the party game.
| graph | the graph in which players are nodes |
References frodo2.algorithms.RandGraphFactory.Graph.neighborhoods, and frodo2.algorithms.RandGraphFactory.Graph.nodes.
Referenced by generateAcyclicProblem(), generateChordalProblem(), generateGridProblem(), generateRingProblem(), and main().
|
static |
Generates an instance based on a ring graph.
| nbrPlayers | the number of players |
| epsilon | the margin used for approximate equilibria |
| mixed | whether to allow mixed strategies |
| method | the DisCSP formulation method |
| intensional | whether to use intensional constraints |
References encodeProblem(), generateProblem(), and frodo2.algorithms.RandGraphFactory.getRingGraph().

|
static |
Write a random problem to a file.
| args | epsilon mixed graph [graph parameters] |
| IOException | if an I/O error occurs while writing the output file |
References encodeProblem(), generateProblem(), frodo2.algorithms.RandGraphFactory.getAcyclicGraph(), frodo2.algorithms.RandGraphFactory.getChordalGraph(), frodo2.algorithms.RandGraphFactory.getRingGraph(), frodo2.algorithms.RandGraphFactory.getSquareGrid(), frodo2.benchmarks.party.PartyGame.Method.Leaute11, frodo2.benchmarks.party.PartyGame.Method.Soni07, and frodo2.benchmarks.party.PartyGame.Method.Vickrey02.
