|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Conditional optimal assignment(s) to several variables. More...

Public Member Functions | |
| String | toString () |
| void | augment (AddableInteger[] variablesValues, ArrayList< AddableInteger > utilityValue) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | changeVariablesOrder (String[] variablesOrder) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | clone () |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | compose (String[] vars, BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > substitution) |
| boolean | equivalent (BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > space) |
| Class< ArrayList< AddableInteger > > | getClassOfU () |
| ArrayList< AddableInteger > | getDefaultUtility () |
| ArrayList< AddableInteger > | getUtility (AddableInteger[] variablesValues) |
| ArrayList< AddableInteger > | getUtility (String[] variablesNames, AddableInteger[] variablesValues) |
| ArrayList< AddableInteger > | getUtility (Map< String, AddableInteger > assignments) |
| ArrayList< AddableInteger > | getUtility (long index) |
| boolean | isIncludedIn (BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > space) |
| BasicUtilitySolutionSpace.Iterator< AddableInteger, ArrayList< AddableInteger > > | iterator () |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | resolve () |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | resolve (boolean unused) |
| BasicUtilitySolutionSpace.Iterator< AddableInteger, ArrayList< AddableInteger > > | iterator (String[] variables, AddableInteger[][] domains) |
| Iterator< AddableInteger, ArrayList< AddableInteger > > | iterator (String[] variables, AddableInteger[][] domains, AddableInteger[] assignment) |
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > | sparseIter () |
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > | sparseIter (String[] order) |
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > | sparseIter (String[] variables, AddableInteger[][] domains) |
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > | sparseIter (String[] variables, AddableInteger[][] domains, AddableInteger[] assignment) |
| String | prettyPrint (ArrayList< AddableInteger > ignoredUtil) |
| void | setDefaultUtility (ArrayList< AddableInteger > utility) |
| void | setInfeasibleUtility (ArrayList< AddableInteger > utility) |
| boolean | setUtility (AddableInteger[] variablesValues, ArrayList< AddableInteger > utility) |
| void | setUtility (long index, ArrayList< AddableInteger > utility) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | slice (String[] variablesNames, AddableInteger[][] subDomains) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | slice (String[] variablesNames, AddableInteger[] assignments) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | slice (String var, AddableInteger[] subDomain) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | slice (String var, AddableInteger assignment) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | slice (AddableInteger[] assignments) |
| void | augment (AddableInteger[] assignments) |
| AddableInteger[] | getDomain (String variable) |
| AddableInteger[] | getDomain (int index) |
| AddableInteger[] | getDomain (String variable, int index) |
| AddableInteger[][] | getDomains () |
| int | getIndex (String variable) |
| String | getName () |
| long | getNumberOfSolutions () |
| int | getNumberOfVariables () |
| String | getVariable (int index) |
| String[] | getVariables () |
| BasicUtilitySolutionSpace.Iterator< AddableInteger, ArrayList< AddableInteger > > | iterator (String[] order) |
| SolutionSpace< AddableInteger > | join (SolutionSpace< AddableInteger > space, String[] totalVariables) |
| SolutionSpace< AddableInteger > | join (SolutionSpace< AddableInteger > space) |
| SolutionSpace< AddableInteger > | join (SolutionSpace< AddableInteger >[] spaces, String[] totalVariablesOrder) |
| SolutionSpace< AddableInteger > | join (SolutionSpace< AddableInteger >[] spaces) |
| boolean | knows (Class<?> spaceClass) |
| void | renameVariable (String oldName, String newName) |
| void | setDomain (String var, AddableInteger[] dom) |
| void | setName (String name) |
| String | getRelationName () |
| SolutionSpace< AddableInteger > | renameAllVars (String[] newVarNames) |
| void | setRelationName (String name) |
| String | getOwner () |
| void | setOwner (String owner) |
| void | setProblem (ProblemInterface< AddableInteger, ?> problem) |
| boolean | countsCCs () |
| Public Member Functions inherited from frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable > | |
| String | prettyPrint (U ignoredUtil) |
| A human-friendly version of toString(). | |
| U | getUtility (V[] variables_values) |
| Returns an object representing the utility value corresponding to the provided variables values representing a solution. | |
| U | getUtility (String[] variables_names, V[] variables_values) |
| Returns an object representing the utility value corresponding to the provided variables values representing a solution. | |
| U | getUtility (Map< String, V > assignments) |
| Returns the utility corresponding to the input assignments. | |
| boolean | setUtility (V[] variables_values, U utility) |
| Sets the utility value corresponding to a given assignment to variables. | |
| void | setUtility (long index, U utility) |
| Sets the utility value for the solution at the provided index. | |
| void | setDefaultUtility (U utility) |
| Sets the default utility value. | |
| void | setInfeasibleUtility (U utility) |
| Sets the utility associated with infeasible solutions. | |
| void | augment (V[] variables_values, U utility_value) |
| Augments this BasicUtilitySolutionSpace with a new combination of variables values associated with a given utility. | |
| boolean | equivalent (BasicUtilitySolutionSpace< V, U > space) |
| Returns whether the input BasicUtilitySolutionSpace represents the same space as this BasicUtilitySolutionSpace. | |
| boolean | isIncludedIn (BasicUtilitySolutionSpace< V, U > space) |
| Checks if this BasicUtilitySolutionSpace is included in the provided BasicUtilitySolutionSpace. | |
| BasicUtilitySolutionSpace< V, U > | slice (String[] variables_names, V[][] sub_domains) |
| Returns a slice of this BasicUtilitySolutionSpace. | |
| BasicUtilitySolutionSpace< V, U > | slice (String[] variables_names, V[] values) |
| Returns a slice of this BasicUtilitySolutionSpace. | |
| BasicUtilitySolutionSpace< V, U > | slice (String var, V[] subDomain) |
| Slices this SolutionSpace over a single variable. | |
| BasicUtilitySolutionSpace< V, U > | slice (String var, V val) |
| Slices this BasicUtilitySolutionSpace over a single variable-value assignment. | |
| BasicUtilitySolutionSpace< V, U > | slice (V[] variables_values) |
| Returns a slice of this solution space. | |
| BasicUtilitySolutionSpace< V, U > | compose (String[] vars, BasicUtilitySolutionSpace< V, ArrayList< V > > substitution) |
| Substitutes some of the variables in this utility space with functions. | |
| SparseIterator< V, U > | sparseIter (String[] variables, V[][] domains) |
| Returns a sparse iterator. | |
| SparseIterator< V, U > | sparseIter (String[] variables, V[][] domains, V[] assignment) |
| Returns a sparse iterator. | |
| Iterator< V, U > | iterator (String[] variables, V[][] domains) |
| Returns an iterator. | |
| Iterator< V, U > | iterator (String[] variables, V[][] domains, V[] assignment) |
| Returns an iterator. | |
| Public Member Functions inherited from frodo2.solutionSpaces.SolutionSpace< V > | |
| void | setProblem (ProblemInterface< V, ?> problem) |
| Sets the problem that should be notified of constraint checks. | |
| boolean | countsCCs () |
| String | getName () |
| void | setName (String name) |
| Sets the name of this space. | |
| String | getRelationName () |
| void | setRelationName (String name) |
| Sets the name of the underlying relation for this space. | |
| String | getOwner () |
| void | setOwner (String owner) |
| Sets the owner. | |
| long | getNumberOfSolutions () |
| Returns the number of solutions in the SolutionSpace. | |
| String[] | getVariables () |
| Returns the internal order of variables used within the SolutionSpace. | |
| int | getNumberOfVariables () |
| Returns the number of variables in the SolutionSpace. | |
| String | getVariable (int index) |
| Returns the variable corresponding to the provided index. | |
| void | renameVariable (String oldName, String newName) |
| Renames a variable. | |
| SolutionSpace< V > | renameAllVars (String[] newVarNames) |
| Creates a shallow clone of this space, with different variable names. | |
| int | getIndex (String variable) |
| Returns the index of the input variable in this SolutionSpace. | |
| V[][] | getDomains () |
| Returns the array containing the domains of the variables. | |
| V[] | getDomain (String variable) |
| Returns an array of all possible values that the variable provided as a parameter can take in this SolutionSpace. | |
| void | setDomain (String var, V[] dom) |
| Sets the domain of a variable. | |
| void | augment (V[] variables_values) |
| Augments the SolutionSpace with a new combination of variable values which constitutes a new solution. | |
| SolutionSpace< V > | slice (String[] variables_names, V[][] sub_domains) |
| Returns a slice of this SolutionSpace. | |
| boolean | knows (Class<?> spaceClass) |
| Returns whether this space knows how to handle other spaces of the input class. | |
| SolutionSpace< V > | join (SolutionSpace< V > space, String[] total_variables) |
| Returns a SolutionSpace object obtained by joining this SolutionSpace object with the one provided as a parameter. | |
| boolean | equals (Object o) |
| Checks for equality. | |
| SolutionSpace< V > | clone () |
| SolutionSpace< V > | resolve () |
| SparseIterator< V > | sparseIter () |
| Iterator< V > | iterator () |
Package Functions | |
| JaCoPoptAssignments (JaCoPutilSpace<?> space, IntVarCloneable[] vars, IntVarCloneable[] varsOut) | |
| Constructor. | |
Package Attributes | |
| HashMap< String, AddableInteger[]> | allDoms |
| The variable names, including the projected out and sliced out variables, but excluding the valuation variable. | |
Private Attributes | |
| final JaCoPutilSpace<?> | space |
| The space from which variables were projected out. | |
| final IntVarCloneable[] | vars |
| The variables in the separator. | |
| final IntVarCloneable[] | projectedVars |
| The projected variables for which we want to search the assignments given an assignment. | |
Static Private Attributes | |
| static final long | serialVersionUID = 2713289252460722989L |
| Used for serialization. | |
Conditional optimal assignment(s) to several variables.
|
package |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.augment | ( | AddableInteger[] | assignments | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.augment | ( | AddableInteger[] | variablesValues, |
| ArrayList< AddableInteger > | utilityValue ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.changeVariablesOrder | ( | String[] | variablesOrder | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.clone | ( | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.compose | ( | String[] | vars, |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | substitution ) |
References vars.
| boolean frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.countsCCs | ( | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.equivalent | ( | BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | space | ) |
| Class< ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getClassOfU | ( | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| ArrayList< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getDefaultUtility | ( | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| AddableInteger[] frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getDomain | ( | int | index | ) |
| AddableInteger[] frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getDomain | ( | String | variable | ) |
| AddableInteger[] frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getDomain | ( | String | variable, |
| int | index ) |
| AddableInteger[][] frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getDomains | ( | ) |
Referenced by resolve().
| int frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getIndex | ( | String | variable | ) |
| String frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getName | ( | ) |
| long frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getNumberOfSolutions | ( | ) |
References allDoms.
Referenced by getUtility(), and resolve().
| int frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getNumberOfVariables | ( | ) |
| String frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getOwner | ( | ) |
| String frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getRelationName | ( | ) |
| ArrayList< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility | ( | AddableInteger[] | variablesValues | ) |
References frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getProjVarDomain(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.imposeConstraints(), frodo2.solutionSpaces.AddableInteger.intValue(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.isConsistent, projectedVars, space, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.store, and vars.
Referenced by getUtility(), getUtility(), and resolve().

| ArrayList< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility | ( | long | index | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
References allDoms, getNumberOfSolutions(), getUtility(), and vars.

| ArrayList< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility | ( | Map< String, AddableInteger > | assignments | ) |
| ArrayList< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility | ( | String[] | variablesNames, |
| AddableInteger[] | variablesValues ) |
References getUtility(), and vars.

| String frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getVariable | ( | int | index | ) |
| String[] frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getVariables | ( | ) |
Referenced by resolve().
| boolean frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.isIncludedIn | ( | BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | space | ) |
| BasicUtilitySolutionSpace.Iterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.iterator | ( | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| BasicUtilitySolutionSpace.Iterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.iterator | ( | String[] | order | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| BasicUtilitySolutionSpace.Iterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.iterator | ( | String[] | variables, |
| AddableInteger | domains[][] ) |
| Iterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.iterator | ( | String[] | variables, |
| AddableInteger | domains[][], | ||
| AddableInteger[] | assignment ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.join | ( | SolutionSpace< AddableInteger > | space | ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.join | ( | SolutionSpace< AddableInteger > | space, |
| String[] | totalVariables ) |
References space.
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.join | ( | SolutionSpace< AddableInteger >[] | spaces | ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.join | ( | SolutionSpace< AddableInteger >[] | spaces, |
| String[] | totalVariablesOrder ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.knows | ( | Class<?> | spaceClass | ) |
| String frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.prettyPrint | ( | ArrayList< AddableInteger > | ignoredUtil | ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.renameAllVars | ( | String[] | newVarNames | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.renameVariable | ( | String | oldName, |
| String | newName ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.resolve | ( | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
References resolve().
Referenced by resolve().

| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.resolve | ( | boolean | unused | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
References getDomains(), getNumberOfSolutions(), getUtility(), getVariables(), and frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V extends Addable< V >, U extends Serializable >.hasNext().

| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setDefaultUtility | ( | ArrayList< AddableInteger > | utility | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setDomain | ( | String | var, |
| AddableInteger[] | dom ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setInfeasibleUtility | ( | ArrayList< AddableInteger > | utility | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setName | ( | String | name | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setOwner | ( | String | owner | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setProblem | ( | ProblemInterface< AddableInteger, ?> | problem | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setRelationName | ( | String | name | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setUtility | ( | AddableInteger[] | variablesValues, |
| ArrayList< AddableInteger > | utility ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.setUtility | ( | long | index, |
| ArrayList< AddableInteger > | utility ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.slice | ( | AddableInteger[] | assignments | ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.slice | ( | String | var, |
| AddableInteger | assignment ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.slice | ( | String | var, |
| AddableInteger[] | subDomain ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.slice | ( | String[] | variablesNames, |
| AddableInteger[] | assignments ) |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.slice | ( | String[] | variablesNames, |
| AddableInteger | subDomains[][] ) |
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.sparseIter | ( | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.sparseIter | ( | String[] | order | ) |
Implements frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.sparseIter | ( | String[] | variables, |
| AddableInteger | domains[][] ) |
| SparseIterator< AddableInteger, ArrayList< AddableInteger > > frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.sparseIter | ( | String[] | variables, |
| AddableInteger | domains[][], | ||
| AddableInteger[] | assignment ) |
| String frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.toString | ( | ) |
|
package |
The variable names, including the projected out and sliced out variables, but excluding the valuation variable.
Referenced by getNumberOfSolutions(), and getUtility().
|
private |
The projected variables for which we want to search the assignments given an assignment.
Referenced by getUtility().
|
staticprivate |
Used for serialization.
|
private |
The space from which variables were projected out.
Referenced by equivalent(), getUtility(), isIncludedIn(), JaCoPoptAssignments(), join(), and join().
|
private |
The variables in the separator.
Referenced by compose(), getUtility(), getUtility(), getUtility(), and JaCoPoptAssignments().