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

Test case for LocalRandVarsDFS. More...

Inheritance diagram for frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest:

Public Member Functions

 LocalRandVarsDFStest (String method)
 Creates a JUnit test case corresponding to the input method.
void test () throws Exception
 Checks that E[DPOP] with LocalRandVarsDFS always terminates.

Static Public Member Functions

static TestSuite suite ()

Private Attributes

final int maxNbrVars = 5
 Maximum number of variables in the problem.
final int maxNbrEdges = 15
 Maximum number of binary constraints in the problem.
final int maxNbrAgents = 5
 Maximum number of agents.

Detailed Description

Test case for LocalRandVarsDFS.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ LocalRandVarsDFStest()

frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.LocalRandVarsDFStest ( String method)

Creates a JUnit test case corresponding to the input method.

Parameters
methodname of the method

Referenced by suite().

Member Function Documentation

◆ suite()

TestSuite frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.suite ( )
static
Returns
the test suite

References LocalRandVarsDFStest(), and suite().

Referenced by frodo2.algorithms.varOrdering.dfs.tests.AllTestsDFS.suite(), and suite().

Here is the call graph for this function:

◆ test()

void frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.test ( ) throws Exception

Checks that E[DPOP] with LocalRandVarsDFS always terminates.

Exceptions
Exceptionif an error occurs while creating the agent description file
Todo
Test that the heuristic is properly implemented.

References frodo2.algorithms.test.AllTests.createRandProblem(), maxNbrAgents, maxNbrEdges, maxNbrVars, and frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse().

Here is the call graph for this function:

Member Data Documentation

◆ maxNbrAgents

final int frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.maxNbrAgents = 5
private

Maximum number of agents.

Referenced by test().

◆ maxNbrEdges

final int frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.maxNbrEdges = 15
private

Maximum number of binary constraints in the problem.

Referenced by test().

◆ maxNbrVars

final int frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.maxNbrVars = 5
private

Maximum number of variables in the problem.

Note
Must be at least 2.

Referenced by test().


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