|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
JUnit tests for the MPC-Dis(W)CSP4 algorithms. More...

Public Member Functions | |
| MPC_DisWCSP4tests (boolean w, boolean maximize, int sign, boolean tcp) | |
| Constructor. | |
| void | test () |
| The test method. | |
Static Public Member Functions | |
| static TestSuite | suite () |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| final int | costAmplitude |
| The costs in each constraints take values in [0, costAmplitude], allowing infinity. | |
| Document | problem |
| A random DCOP instance. | |
| Document | agentConfig |
| The agent configuration file. | |
| final boolean | maximize |
| Whether to test on maximization or minimization problems. | |
| final int | sign |
| The sign of the utilities/costs. | |
| final boolean | tcp |
| Whether to use TCP pipes. | |
JUnit tests for the MPC-Dis(W)CSP4 algorithms.
| frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.MPC_DisWCSP4tests | ( | boolean | w, |
| boolean | maximize, | ||
| int | sign, | ||
| boolean | tcp ) |
Constructor.
| w | if true, use MPC-DisWCSP4 |
| maximize | whether to test on maximization or minimization problems |
| sign | the sign of the utilities/costs |
| tcp | whether to use TCP pipes |
References maximize, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), sign, and tcp.
Referenced by suite().

|
protected |
References costAmplitude, and frodo2.algorithms.test.AllTests.createRandProblem().

|
static |
References MPC_DisWCSP4tests(), and suite().
Referenced by suite(), and frodo2.algorithms.test.AllTests.suite().

|
protected |
| void frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.test | ( | ) |
The test method.
References agentConfig, costAmplitude, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgents(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.algorithms.Solution< V, U >.getUtility(), maximize, problem, frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.solve(), and frodo2.algorithms.mpc_discsp.MPC_DisWCSP4solver< V extends Addable< V >, U extends Addable< U > >.solve().

|
private |
The agent configuration file.
Referenced by test().
|
private |
|
private |
Whether to test on maximization or minimization problems.
Referenced by MPC_DisWCSP4tests(), and test().
|
private |
A random DCOP instance.
Referenced by test().
|
private |
The sign of the utilities/costs.
Referenced by MPC_DisWCSP4tests().
|
private |
Whether to use TCP pipes.
Referenced by MPC_DisWCSP4tests().