FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests Class Reference

JUnit tests for the MPC-Dis(W)CSP4 algorithms. More...

Inheritance diagram for frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests:

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.

Detailed Description

JUnit tests for the MPC-Dis(W)CSP4 algorithms.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ MPC_DisWCSP4tests()

frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.MPC_DisWCSP4tests ( boolean w,
boolean maximize,
int sign,
boolean tcp )

Constructor.

Parameters
wif true, use MPC-DisWCSP4
maximizewhether to test on maximization or minimization problems
signthe sign of the utilities/costs
tcpwhether to use TCP pipes

References maximize, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), sign, and tcp.

Referenced by suite().

Here is the call graph for this function:

Member Function Documentation

◆ setUp()

void frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.setUp ( ) throws Exception
protected
See also
junit.framework.TestCase#setUp()

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

Here is the call graph for this function:

◆ suite()

TestSuite frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.suite ( )
static
Returns
a suite of tests with randomized input problem instances

References MPC_DisWCSP4tests(), and suite().

Referenced by suite(), and frodo2.algorithms.test.AllTests.suite().

Here is the call graph for this function:

◆ tearDown()

void frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.tearDown ( ) throws Exception
protected
See also
junit.framework.TestCase#tearDown()

◆ test()

Member Data Documentation

◆ agentConfig

Document frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.agentConfig
private

The agent configuration file.

Referenced by test().

◆ costAmplitude

final int frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.costAmplitude
private

The costs in each constraints take values in [0, costAmplitude], allowing infinity.

Referenced by setUp(), and test().

◆ maximize

final boolean frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.maximize
private

Whether to test on maximization or minimization problems.

Referenced by MPC_DisWCSP4tests(), and test().

◆ problem

Document frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.problem
private

A random DCOP instance.

Referenced by test().

◆ sign

final int frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.sign
private

The sign of the utilities/costs.

Referenced by MPC_DisWCSP4tests().

◆ tcp

final boolean frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.tcp
private

Whether to use TCP pipes.

Referenced by MPC_DisWCSP4tests().


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