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

Public Member Functions | |
| ScalarSpaceIter (U utility, U infeasibleUtil, U skippedUtil) | |
| Constructor. | |
| ScalarSpaceIter (U utility, String[] variables, V[][] domains, U infeasibleUtil, U skippedUtil) | |
| Constructor. | |
| U | nextUtility (U bound, final boolean minimize) |
| U | getCurrentUtility (U bound, final boolean minimize) |
| String | toString () |
| Public Member Functions inherited from frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< 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 () |
| 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 | |
| ScalarSpaceIter () | |
| Empty constructor. | |
| ScalarSpaceIter (U utility, String[] variables, V[][] domains, V[] assignment, U infeasibleUtil, U skippedUtil) | |
| Constructor. | |
| Protected Member Functions inherited from frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U > | |
| ScalarBasicSpaceIter () | |
| Empty constructor. | |
| void | init (U utility, String[] variables, V[][] domains, V[] assignment) |
| Helper method called by the constructor. | |
| void | iter () |
| Moves to the next solution. | |
Additional Inherited Members | |
| Protected Attributes inherited from frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U > | |
| U | utility |
| Current utility value. | |
| V[] | solution |
| Current variable assignments. | |
| long | nbrSolLeft |
| The number of solutions left to iterate over. | |
| U | skippedUtil |
| The utility value that should be skipped, if any. | |
| U | inf |
| The infeasible utility. | |
A solution iterator for a scalar space.
| <V> | the type used for variable values |
| <U> | the type used for utility values |
|
protected |
Empty constructor.
| frodo2.solutionSpaces.hypercube.ScalarSpaceIter< V extends Addable< V >, U extends Addable< U > >.ScalarSpaceIter | ( | U | utility, |
| U | infeasibleUtil, | ||
| U | skippedUtil ) |
Constructor.
| utility | the utility value |
| infeasibleUtil | the infeasible utility |
| skippedUtil | the utility value to skip, if any |
References frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.skippedUtil, and frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.utility.
| frodo2.solutionSpaces.hypercube.ScalarSpaceIter< V extends Addable< V >, U extends Addable< U > >.ScalarSpaceIter | ( | U | utility, |
| String[] | variables, | ||
| V | domains[][], | ||
| U | infeasibleUtil, | ||
| U | skippedUtil ) |
Constructor.
| utility | the utility value |
| variables | the variables to iterate over; may include variables not in the space |
| domains | the variables' domains |
| infeasibleUtil | the infeasible utility |
| skippedUtil | the utility value to skip, if any |
References frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.domains, frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.skippedUtil, frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.utility, and frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.variables.
|
protected |
Constructor.
| utility | the utility value |
| 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() |
| infeasibleUtil | the infeasible utility |
| skippedUtil | the utility value to skip, if any |
References frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.domains, frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.skippedUtil, frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.utility, and frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.variables.
| U frodo2.solutionSpaces.hypercube.ScalarSpaceIter< V extends Addable< V >, U extends Addable< U > >.getCurrentUtility | ( | U | bound, |
| final boolean | minimize ) |
Reimplemented in frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiterator.
References frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.getCurrentUtility().

| U frodo2.solutionSpaces.hypercube.ScalarSpaceIter< V extends Addable< V >, U extends Addable< U > >.nextUtility | ( | U | bound, |
| final boolean | minimize ) |
Reimplemented in frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.VRPiterator.
References frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.hasNext(), and frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V, U >.nextUtility().

| String frodo2.solutionSpaces.hypercube.ScalarSpaceIter< V extends Addable< V >, U extends Addable< U > >.toString | ( | ) |