|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
An iterator for a Hypercube. More...

Public Member Functions | |
| HypercubeIter () | |
| Constructor. | |
| U | nextUtility (U bound, final boolean minimize) |
| U | getCurrentUtility (U bound, final boolean minimize) |
| Public Member Functions inherited from frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U > | |
| long | getNbrSolutions () |
| V[] | nextSolution () |
| U | nextUtility () |
| V[] | getCurrentSolution () |
| U | getCurrentUtility () |
| void | setCurrentUtility (U util) |
| Sets the utility of the current solution. | |
| String[] | getVariablesOrder () |
| V[][] | getDomains () |
| boolean | hasNext () |
| void | update () |
| String | toString () |
| Public Member Functions inherited from frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.SparseIterator< V, U > | |
| U | nextUtility () |
| U | getCurrentUtility () |
| void | setCurrentUtility (U util) |
| Sets the utility of the current solution. | |
| Public Member Functions inherited from frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V > | |
| V[] | nextSolution () |
| V[] | getCurrentSolution () |
| String[] | getVariablesOrder () |
| V[][] | getDomains () |
| void | update () |
| It is supposed to be called if the solution space upon which the iterator is based has changed. | |
| Public Member Functions inherited from frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V > | |
| long | getNbrSolutions () |
| boolean | hasNext () |
Protected Member Functions | |
| HypercubeIter (BasicHypercube< V, U > space, String[] variables, V[][] domains, V[] assignment, U skippedUtil) | |
| Constructor. | |
| HypercubeIter (BasicHypercube< V, U > space, String[] varOrder, V[] assignment, U skippedUtil) | |
| Constructor. | |
| HypercubeIter (BasicHypercube< V, U > space, V[] assignment, U skippedUtil) | |
| Constructor. | |
| Protected Member Functions inherited from frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U > | |
| BasicHypercubeIter () | |
| Empty constructor. | |
| int | iter () |
| Moves to the next solution. | |
Additional Inherited Members | |
| Protected Attributes inherited from frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U > | |
| U[] | utilities |
| The space's utility array. | |
| U | utility |
| Current utility value. | |
| int | utilIndex |
| The index of the current utility value in the utility array. | |
| int[][] | steps |
| For each variable: | |
| V[] | solution |
| Current variable assignments. | |
| BasicHypercube< V, U > | space |
| The BasicHypercube we are iterating over. | |
| String[] | variables |
| The order of iteration over the variables. | |
| int | nbrVars |
| The number of variables. | |
| V[][] | domains |
| The variables' domains. | |
| int[] | valIndexes |
| For each variable, the index in its domain of the current assignment. | |
| long | nbrSolLeft |
| The number of solutions left to iterate over. | |
| long | nbrSols |
| The total number of solutions to iterate over. | |
An iterator for a Hypercube.
| <V> | the type used for variable values |
| <U> | the type used for utility values |
| frodo2.solutionSpaces.hypercube.HypercubeIter< V extends Addable< V >, U extends Addable< U > >.HypercubeIter | ( | ) |
Constructor.
|
protected |
Constructor.
| space | the BasicHypercube to iterate over |
| variables | the variables to iterate over; may include variables not in the space |
| domains | the variables' domains |
| assignment | An array that will be used as the output of nextSolution() |
| skippedUtil | The utility value to skip, if any |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.domains, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.skippedUtil, frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.space, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.variables.
|
protected |
Constructor.
| space | the BasicHypercube to iterate over |
| varOrder | the order of iteration of the variables |
| assignment | An array that will be used as the output of nextSolution() |
| skippedUtil | The utility value to skip, if any |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.skippedUtil, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.space.
|
protected |
Constructor.
| space | the BasicHypercube to iterate over |
| assignment | An array that will be used as the output of nextSolution() |
| skippedUtil | The utility value to skip, if any |
References frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.skippedUtil, and frodo2.solutionSpaces.hypercube.BasicHypercubeIter< V, U >.space.
| U frodo2.solutionSpaces.hypercube.HypercubeIter< V extends Addable< V >, U extends Addable< U > >.getCurrentUtility | ( | U | bound, |
| final boolean | minimize ) |
Referenced by frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMaximize(), and frodo2.solutionSpaces.hypercube.tests.HypercubeIterBestFirstTest.testMinimize().
| U frodo2.solutionSpaces.hypercube.HypercubeIter< V extends Addable< V >, U extends Addable< U > >.nextUtility | ( | U | bound, |
| final boolean | minimize ) |