|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
JUnit tests for the Vehicle Routing Problem benchmarks. More...

Public Member Functions | |
| VRPtests (String filePath, float radius, int minSplit) | |
| Constructor. | |
| VRPtests (String name, String filePath, float radius, int minSplit) | |
| Constructor. | |
| void | test () throws Exception |
| Tests various algorithms against each other. | |
| void | testBestFirstiterator () throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException |
| Test the best first iterator. | |
| void | testCompoundBestFirstIterator () throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException |
| Test the best first iterator of the compound space. | |
Static Public Member Functions | |
| static TestSuite | suite () |
| Constructs the test suite. | |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| Document | problem |
| The overall problem. | |
| final String | filePath |
| Path to the Cordeau problem file. | |
| final float | radius |
| The visibility radius around any given depot. | |
| final int | minSplit |
| If positive, allow split deliveries, with a minimum split size of minSplit. | |
JUnit tests for the Vehicle Routing Problem benchmarks.
| frodo2.solutionSpaces.vehiclerouting.test.VRPtests.VRPtests | ( | String | filePath, |
| float | radius, | ||
| int | minSplit ) |
| frodo2.solutionSpaces.vehiclerouting.test.VRPtests.VRPtests | ( | String | name, |
| String | filePath, | ||
| float | radius, | ||
| int | minSplit ) |
|
protected |
References frodo2.benchmarks.vehiclerouting.CordeauToXCSP.createXCSP(), filePath, frodo2.benchmarks.vehiclerouting.CordeauToXCSP.parse(), and radius.

|
static |
Constructs the test suite.
References radius, suite(), and VRPtests().
Referenced by frodo2.solutionSpaces.tests.AllTestsSpaces.suite(), and suite().

|
protected |
| void frodo2.solutionSpaces.vehiclerouting.test.VRPtests.test | ( | ) | throws Exception |
Tests various algorithms against each other.
| Exception | if an error occurs |
References frodo2.solutionSpaces.AddableBigDecimal.equals(), frodo2.solutionSpaces.AddableReal.equals(), frodo2.algorithms.Solution< V, U >.getAssignments(), frodo2.algorithms.Solution< V, U >.getNcccCount(), frodo2.algorithms.Solution< V, U >.getUtility(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), problem, frodo2.algorithms.AbstractSolver< P extends ProblemInterface< V, U, V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.setUtilClass(), frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.solve(), frodo2.algorithms.dpop.privacy.P2_DPOPsolver< V extends Addable< V >, U extends Addable< U > >.solve(), and frodo2.timeout.

| void frodo2.solutionSpaces.vehiclerouting.test.VRPtests.testBestFirstiterator | ( | ) | throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException |
Test the best first iterator.
| InstantiationException | error thrown when creating a new instance of an object fails |
| IllegalAccessException | error thrown when creating a new instance of an object fails |
| NoSuchMethodException | error thrown when creating a new instance of an object fails |
| InvocationTargetException | error thrown when creating a new instance of an object fails |
References frodo2.solutionSpaces.AddableReal.compareTo(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), frodo2.solutionSpaces.AddableReal.getMinInfinity(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), problem, and frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.setUtilClass().

| void frodo2.solutionSpaces.vehiclerouting.test.VRPtests.testCompoundBestFirstIterator | ( | ) | throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException |
Test the best first iterator of the compound space.
| InstantiationException | error thrown when creating a new instance of an object fails |
| IllegalAccessException | error thrown when creating a new instance of an object fails |
| NoSuchMethodException | error thrown when creating a new instance of an object fails |
| InvocationTargetException | error thrown when creating a new instance of an object fails |
References frodo2.solutionSpaces.AddableReal.compareTo(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), frodo2.solutionSpaces.AddableReal.getMinInfinity(), frodo2.benchmarks.vehiclerouting.XCSPparserVRPODPOP< U extends Addable< U > >.getSolutionSpaces(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iteratorBestFirst(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U >.nextUtility(), problem, frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.setUtilClass(), and testCompoundBestFirstIterator().
Referenced by testCompoundBestFirstIterator().

|
private |
Path to the Cordeau problem file.
Referenced by setUp(), VRPtests(), and VRPtests().
|
private |
If positive, allow split deliveries, with a minimum split size of minSplit.
Referenced by VRPtests(), and VRPtests().
|
private |
The overall problem.
Referenced by test(), testBestFirstiterator(), and testCompoundBestFirstIterator().
|
private |
The visibility radius around any given depot.
Referenced by setUp(), suite(), VRPtests(), and VRPtests().