FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.count.test.TestCountSolutions Class Reference
Inheritance diagram for frodo2.algorithms.dpop.count.test.TestCountSolutions:

Public Member Functions

 TestCountSolutions (boolean maximize)
 Constructor.
void testRandom ()
 Test the counter on a random problem.

Static Public Member Functions

static TestSuite suite ()

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Attributes

final int maxNbrVars = 8
 Maximum number of variables in the problem.
final int maxNbrEdges = 25
 Maximum number of binary constraints in the problem.
final int maxNbrAgents = 8
 Maximum number of agents.
Graph graph
 The constraint graph.
Document problem
 A randomly generated problem.
final boolean maximize
 Whether to maximize or minimize.

Detailed Description

Author
brammert

Constructor & Destructor Documentation

◆ TestCountSolutions()

frodo2.algorithms.dpop.count.test.TestCountSolutions.TestCountSolutions ( boolean maximize)

Constructor.

Parameters
maximizeWhether to maximize or minimize

References maximize.

Referenced by suite().

Member Function Documentation

◆ setUp()

void frodo2.algorithms.dpop.count.test.TestCountSolutions.setUp ( ) throws Exception
protected
See also
junit.framework.TestCase#setUp()

References frodo2.algorithms.test.AllTests.generateProblem(), frodo2.algorithms.RandGraphFactory.getRandGraph(), graph, maxNbrAgents, maxNbrEdges, maxNbrVars, and problem.

Here is the call graph for this function:

◆ suite()

TestSuite frodo2.algorithms.dpop.count.test.TestCountSolutions.suite ( )
static
Returns
the test suite

References suite(), and TestCountSolutions().

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

Here is the call graph for this function:

◆ tearDown()

void frodo2.algorithms.dpop.count.test.TestCountSolutions.tearDown ( ) throws Exception
protected
See also
junit.framework.TestCase#tearDown()

◆ testRandom()

Member Data Documentation

◆ graph

Graph frodo2.algorithms.dpop.count.test.TestCountSolutions.graph
private

The constraint graph.

Referenced by setUp().

◆ maximize

final boolean frodo2.algorithms.dpop.count.test.TestCountSolutions.maximize
private

Whether to maximize or minimize.

Referenced by TestCountSolutions().

◆ maxNbrAgents

final int frodo2.algorithms.dpop.count.test.TestCountSolutions.maxNbrAgents = 8
private

Maximum number of agents.

Referenced by setUp().

◆ maxNbrEdges

final int frodo2.algorithms.dpop.count.test.TestCountSolutions.maxNbrEdges = 25
private

Maximum number of binary constraints in the problem.

Referenced by setUp().

◆ maxNbrVars

final int frodo2.algorithms.dpop.count.test.TestCountSolutions.maxNbrVars = 8
private

Maximum number of variables in the problem.

Note
Must be at least 2.

Referenced by setUp().

◆ problem

Document frodo2.algorithms.dpop.count.test.TestCountSolutions.problem
private

A randomly generated problem.

Referenced by setUp(), and testRandom().


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