|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A UtilitySolutionSpace based on JaCoP as a local solver. More...

Public Member Functions | |
| JaCoPutilSpace () | |
| Empty constructor that does nothing. | |
| JaCoPutilSpace (String name, List< Constraint > constraints, List< DecomposedConstraint< Constraint > > decompCons, List< IntVarCloneable > valuationVars, HashMap< String, AddableInteger[]> allVars, IntVarCloneable[] vars, IntVarCloneable[] projectedVars, IntVarCloneable[] slicedVars, boolean maximize, V defaultValuation, V infeasibleValuation) | |
| Constructor construct an implicit JaCoPutilSpace. | |
| void | writeExternal (ObjectOutput out) throws IOException |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| String | toString () |
| UtilitySolutionSpace< AddableInteger, V > | changeVariablesOrder (final String[] variablesOrder) |
| JaCoPutilSpace< V > | clone () |
| UtilitySolutionSpace< AddableInteger, V > | compose (String[] vars, BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > substitution) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | consensus (String varOut, Map< String, UtilitySolutionSpace< AddableInteger, V > > distributions, boolean maximum) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | consensusAllSols (String varOut, Map< String, UtilitySolutionSpace< AddableInteger, V > > distributions, boolean maximum) |
| frodo2.solutionSpaces.UtilitySolutionSpace.ProjOutput< AddableInteger, V > | consensusExpect (String varOut, Map< String, UtilitySolutionSpace< AddableInteger, V > > distributions, boolean maximum) |
| frodo2.solutionSpaces.UtilitySolutionSpace.ProjOutput< AddableInteger, V > | consensusAllSolsExpect (String varOut, Map< String, UtilitySolutionSpace< AddableInteger, V > > distributions, boolean maximum) |
| UtilitySolutionSpace< AddableInteger, V > | expectation (Map< String, UtilitySolutionSpace< AddableInteger, V > > distributions) |
| boolean | isIncludedIn (UtilitySolutionSpace< AddableInteger, V > space) |
| UtilitySolutionSpace.IteratorBestFirst< AddableInteger, V > | iteratorBestFirst (boolean maximize) |
| UtilitySolutionSpace< AddableInteger, V > | join (UtilitySolutionSpace< AddableInteger, V > space, String[] totalVariables) |
| UtilitySolutionSpace< AddableInteger, V > | join (UtilitySolutionSpace< AddableInteger, V > space) |
| UtilitySolutionSpace< AddableInteger, V > | join (UtilitySolutionSpace< AddableInteger, V >[] spaces) |
| UtilitySolutionSpace< AddableInteger, V > | joinMinNCCCs (UtilitySolutionSpace< AddableInteger, V > space) |
| UtilitySolutionSpace< AddableInteger, V > | joinMinNCCCs (UtilitySolutionSpace< AddableInteger, V >[] spaces) |
| UtilitySolutionSpace< AddableInteger, V > | multiply (UtilitySolutionSpace< AddableInteger, V > space, String[] totalVariables) |
| UtilitySolutionSpace< AddableInteger, V > | multiply (UtilitySolutionSpace< AddableInteger, V > space) |
| UtilitySolutionSpace< AddableInteger, V > | multiply (UtilitySolutionSpace< AddableInteger, V >[] spaces) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | project (String[] vars, boolean maximum) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | project (int numberToProject, boolean maximum) |
| ProjOutput< AddableInteger, V > | project (String variableName, boolean maximum) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | projectAll (boolean maximum) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | projectAll (boolean maximum, String[] order) |
| UtilitySolutionSpace< AddableInteger, V > | resolve () |
| UtilitySolutionSpace< AddableInteger, V > | resolve (final boolean sparse) |
| boolean | imposeConstraints () |
| Imposes the constraints and calls the consistency function. | |
| Map< AddableInteger, Double > | sample (int nbrSamples) |
| UtilitySolutionSpace< AddableInteger, V > | slice (String[] variablesNames, AddableInteger[][] subDomains) |
| UtilitySolutionSpace< AddableInteger, V > | slice (String[] variablesNames, AddableInteger[] assignments) |
| UtilitySolutionSpace< AddableInteger, V > | slice (String varName, AddableInteger[] subDomain) |
| UtilitySolutionSpace< AddableInteger, V > | slice (String var, AddableInteger val) |
| UtilitySolutionSpace< AddableInteger, V > | slice (AddableInteger[] variablesValues) |
| UtilitySolutionSpace< AddableInteger, V > | slice (final Map< String, AddableInteger > assignments) |
| Slices this space over input assignments. | |
| UtilitySolutionSpace< AddableInteger, V > | split (V threshold, boolean maximum) |
| void | augment (AddableInteger[] variablesValues, V valuationValue) |
| int | hashCode () |
| boolean | equals (Object o) |
| boolean | equivalent (BasicUtilitySolutionSpace< AddableInteger, V > space) |
| Class< V > | getClassOfU () |
| V | getDefaultUtility () |
| V | getUtility (AddableInteger[] assignments) |
| V | getUtility (String[] variablesNames, AddableInteger[] assignments) |
| V | getUtility (Map< String, AddableInteger > assignments) |
| V | getUtility (long index) |
| boolean | isIncludedIn (BasicUtilitySolutionSpace< AddableInteger, V > space) |
| UtilitySolutionSpace.Iterator< AddableInteger, V > | iterator () |
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > | sparseIter () |
| SparseIterator< AddableInteger, V > | sparseIter (String variable, AddableInteger[] domain) |
| Returns a sparse iterator over a single variable. | |
| UtilitySolutionSpace.Iterator< AddableInteger, V > | iterator (String[] variables, AddableInteger[][] domains, AddableInteger[] assignment) |
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > | sparseIter (String[] variables, AddableInteger[][] domains, AddableInteger[] assignment) |
| String | prettyPrint (V ignoredValuation) |
| void | setDefaultUtility (final V valuation) |
| void | setInfeasibleUtility (V valuation) |
| boolean | setUtility (AddableInteger[] variablesValues, V valuation) |
| void | setUtility (long index, V valuation) |
| void | augment (AddableInteger[] variablesValues) |
| AddableInteger[] | getDomain (String variable) |
| AddableInteger[] | getDomain (int index) |
| AddableInteger[] | getDomain (String variable, int index) |
| AddableInteger[][] | getDomains () |
| int | getIndex (String variable) |
| String | getName () |
| String | getOwner () |
| void | setOwner (String owner) |
| long | getNumberOfSolutions () |
| int | getNumberOfVariables () |
| String | getVariable (int index) |
| String[] | getVariables () |
| UtilitySolutionSpace.Iterator< AddableInteger, V > | iterator (String[] order) |
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > | sparseIter (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) |
| UtilitySolutionSpace< AddableInteger, V > | blindProject (String varOut, boolean maximize) |
| UtilitySolutionSpace< AddableInteger, V > | blindProject (String[] varsOut, boolean maximize) |
| V | blindProjectAll (boolean maximize) |
| IteratorBestFirst< AddableInteger, V > | iteratorBestFirst (boolean maximize, String[] fixedVariables, AddableInteger[] fixedValues) |
| UtilitySolutionSpace< AddableInteger, V > | max (String variable) |
| UtilitySolutionSpace< AddableInteger, V > | min (String variable) |
| String | getRelationName () |
| SolutionSpace< AddableInteger > | renameAllVars (String[] newVarNames) |
| void | setRelationName (String name) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > | projExpectMonotone (String varOut, Map< String, UtilitySolutionSpace< AddableInteger, V > > distributions, boolean maximum) |
| void | setProblem (ProblemInterface< AddableInteger, ?> problem) |
| boolean | countsCCs () |
| StoreCloneable | getStore () |
| boolean | maximize () |
| Hypercube< AddableInteger, V > | toHypercube () |
| Iterator< AddableInteger, V > | iterator (String[] variables, AddableInteger[][] domains) |
| SparseIterator< AddableInteger, V > | sparseIter (String[] variables, AddableInteger[][] domains) |
| UtilitySolutionSpace< AddableInteger, V > | rescale (V add, V multiply) |
| Public Member Functions inherited from frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > > | |
| boolean | isIncludedIn (UtilitySolutionSpace< V, U > space) |
| Checks if this UtilitySolutionSpace is included in the provided UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | join (UtilitySolutionSpace< V, U > space, String[] total_variables) |
| Returns a UtilitySolutionSpace object obtained by joining this UtilitySolutionSpace object with the one provided as a parameter. | |
| UtilitySolutionSpace< V, U > | slice (String[] variables_names, V[][] sub_domains) |
| Returns a slice of this UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | slice (String[] variables_names, V[] values) |
| Returns a slice of this UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | slice (String var, V[] subDomain) |
| Slices this UtilitySolutionSpace over a single variable. | |
| UtilitySolutionSpace< V, U > | slice (String var, V val) |
| Slices this UtilitySolutionSpace over a single variable-value assignment. | |
| UtilitySolutionSpace< V, U > | slice (V[] variables_values) |
| Returns a slice of this UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | join (UtilitySolutionSpace< V, U > space) |
| Computes the join of this UtilitySolutionSpace with the input UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | joinMinNCCCs (UtilitySolutionSpace< V, U > space) |
| A version of the join method that minimizes the utility lookups in the caller space and the input spaces. | |
| UtilitySolutionSpace< V, U > | join (UtilitySolutionSpace< V, U >[] spaces) |
| Returns a UtilitySolutionSpace object obtained by joining the UtilitySolutionSpace for which this method is called and the UtilitySolutionSpace present in the array of UtilitySolutionSpace given to this method as a parameter. | |
| UtilitySolutionSpace< V, U > | joinMinNCCCs (UtilitySolutionSpace< V, U >[] spaces) |
| A version of the join method that minimizes the utility lookups in the caller space and the input spaces. | |
| UtilitySolutionSpace< V, U > | multiply (UtilitySolutionSpace< V, U > space, String[] total_variables) |
| Returns a UtilitySolutionSpace object obtained by joining this UtilitySolutionSpace object with the one provided as a parameter. | |
| UtilitySolutionSpace< V, U > | multiply (UtilitySolutionSpace< V, U > space) |
| Computes the join of this UtilitySolutionSpace with the input UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | multiply (UtilitySolutionSpace< V, U >[] spaces) |
| Returns a UtilitySolutionSpace object obtained by joining the UtilitySolutionSpace for which this method is called and the UtilitySolutionSpace present in the array of UtilitySolutionSpace given to this method as a parameter. | |
| ProjOutput< V, U > | consensus (String varOut, Map< String, UtilitySolutionSpace< V, U > > distributions, boolean maximum) |
| A projection operation that uses the consensus approach. | |
| ProjOutput< V, U > | consensusExpect (String varOut, Map< String, UtilitySolutionSpace< V, U > > distributions, boolean maximum) |
| The composition of the consensus and expectation operations. | |
| ProjOutput< V, U > | consensusAllSols (String varOut, Map< String, UtilitySolutionSpace< V, U > > distributions, boolean maximum) |
| A projection operation that uses the advanced consensus approach. | |
| ProjOutput< V, U > | consensusAllSolsExpect (String varOut, Map< String, UtilitySolutionSpace< V, U > > distributions, boolean maximum) |
| The composition of the consensusAllSols and expectation operations. | |
| UtilitySolutionSpace< V, U > | split (U threshold, boolean maximum) |
| Returns a UtilitySolutionSpace containing all solutions corresponding to utility values bigger/smaller than the provided threshold. | |
| UtilitySolutionSpace< V, U > | compose (String[] vars, BasicUtilitySolutionSpace< V, ArrayList< V > > substitution) |
| UtilitySolutionSpace< V, U > | expectation (Map< String, UtilitySolutionSpace< V, U > > distributions) |
| Computes the expectation of this utility space over the input random variables, conditioned on the input probability space. | |
| ProjOutput< V, U > | projExpectMonotone (String varOut, Map< String, UtilitySolutionSpace< V, U > > distributions, boolean maximum) |
| An optimize expectation().project() operator that assumes that all costs are non-negative (or all utilities non-positive). | |
| UtilitySolutionSpace< V, U > | rescale (U add, U multiply) |
| Rescales the utilities in this space. | |
| IteratorBestFirst< V, U > | iteratorBestFirst (boolean maximize, String[] fixedVariables, V[] fixedValues) |
| SparseIterator< V, U > | sparseIter (String[] variables, V[][] domains) |
| SparseIterator< V, U > | sparseIter (String[] variables, V[][] domains, V[] assignment) |
| Iterator< V, U > | iterator (String[] variables, V[][] domains) |
| Iterator< V, U > | iterator (String[] variables, V[][] domains, V[] assignment) |
| Public Member Functions inherited from frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V, U, U > | |
| UtilitySolutionSpaceLimited< V, U, UL > | join (UtilitySolutionSpace< V, U > space) |
| Binary join operation. | |
| UtilitySolutionSpaceLimited< V, U, UL > | joinMinNCCCs (UtilitySolutionSpace< V, U > space) |
| A version of the join method that minimizes the utility lookups in the caller space and the input space. | |
| UtilitySolutionSpaceLimited< V, U, UL > | blindProject (String varOut, boolean maximize) |
| Projects out the input variable without computing the corresponding optimal assignments. | |
| UL | blindProjectAll (boolean maximize) |
| Projects out all variables without computing the corresponding optimal assignments. | |
| UtilitySolutionSpaceLimited< V, U, UL > | min (String variable) |
| Project out a variable by minimizing over it, without computing the argmin. | |
| UtilitySolutionSpaceLimited< V, U, UL > | max (String variable) |
| Project out a variable by maximizing over it, without computing the argmax. | |
| UtilitySolutionSpaceLimited< V, U, UL > | slice (String var, V val) |
| UtilitySolutionSpaceLimited< V, U, UL > | resolve () |
Public Attributes | |
| V | defaultValuation |
| The default valuation. | |
| V | infeasibleValuation |
| The infeasible valuation. | |
Package Functions | |
| JaCoPutilSpace (String name, String owner, List< Constraint > constraints, List< DecomposedConstraint< Constraint > > decompCons, List< IntVarCloneable > valuationVars, IntVarCloneable[] vars, AddableInteger[][] domains, boolean maximize, V infeasibleValuation) | |
| Constructor constructs an explicit JaCoPutilSpace. | |
| StoreCloneable | initStore () |
| Creates the store (if not already created) and clones the variables and constraints into it. | |
| AddableInteger[] | getProjVarDomain (String variable) |
| Returns an array of all possible values that the projected variable provided as a parameter can take in this JaCoPutilSpace. | |
| IntVarCloneable[] | getProjectedVars () |
| IntVarCloneable[] | getSlicedVars () |
Static Package Functions | |
| [static initializer] | |
Package Attributes | |
| StoreCloneable | store |
| The JaCoP Store. | |
| Boolean | isConsistent |
| The consistency of the JaCoP Store. | |
| HashMap< String, AddableInteger[]> | allDoms |
| The variable names and domains, including the projected out and sliced out variables, but excluding the valuation variable. | |
Private Member Functions | |
| void | addDecompConstraint (DecomposedConstraint< Constraint > cons) |
| Adds a DecomposedConstraint. | |
| Object | readResolve () throws ObjectStreamException |
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > | iterator (final boolean sparse) |
| Returns an iterator. | |
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > | iterator (String[] variables, AddableInteger[][] domains, AddableInteger[] assignment, final boolean sparse) |
| Returns an iterator. | |
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > | iterator (String[] order, final boolean sparse) |
| Returns an iterator with a specific variable order. | |
Private Attributes | |
| boolean | maximize |
| For now (and maybe forever) we will assume that all variables are projected in the same way (all minimized or all maximized). | |
| ArrayList< Constraint > | constraints |
| The list of JaCoP Constraints. | |
| ArrayList< IntVarCloneable > | valuationVars |
| The list of valuation variables from the constraints. | |
| IntVarCloneable | costVar |
| The total cost variable. | |
| IntVarCloneable | valuationVar |
| The total valuation variable. | |
| IntDomain | valuationDom |
| A restriction on the domain of the valuation variable (if any). | |
| IntVarCloneable[] | vars |
| The ordered variables of the space. | |
| IntVarCloneable[] | projectedVars |
| The ordered variables whose projection has been requested. | |
| IntVarCloneable[] | slicedVars |
| The variables that have been grounded by a slice operation. | |
| String | name |
| The name of the UtilSpace. | |
| String | owner |
| The owner of this space. | |
Static Private Attributes | |
| static HashSet< Class<?> > | knownSpaces |
| The types of spaces that we know how to handle. | |
A UtilitySolutionSpace based on JaCoP as a local solver.
| <V> | the type used for valuations |
|
package |
Constructor constructs an explicit JaCoPutilSpace.
| name | the name of the JaCoPutilSpace corresponds to the name of its XCSP constraint |
| owner | the owner |
| constraints | a list of Constraints |
| decompCons | a list of DecomposedConstraints |
| valuationVars | a list of valuation variables |
| vars | the variables |
| domains | the domains of the variables |
| maximize | whether we should maximize the utility or minimize the cost |
| infeasibleValuation | the infeasible valuation |
References addDecompConstraint(), allDoms, constraints, infeasibleValuation, initStore(), maximize, name, owner, valuationVars, and vars.
Referenced by [static initializer](), blindProject(), blindProject(), changeVariablesOrder(), clone(), iterator(), iteratorBestFirst(), join(), project(), project(), rescale(), resolve(), slice(), and slice().

| frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.JaCoPutilSpace | ( | ) |
Empty constructor that does nothing.
| frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.JaCoPutilSpace | ( | String | name, |
| List< Constraint > | constraints, | ||
| List< DecomposedConstraint< Constraint > > | decompCons, | ||
| List< IntVarCloneable > | valuationVars, | ||
| HashMap< String, AddableInteger[]> | allVars, | ||
| IntVarCloneable[] | vars, | ||
| IntVarCloneable[] | projectedVars, | ||
| IntVarCloneable[] | slicedVars, | ||
| boolean | maximize, | ||
| V | defaultValuation, | ||
| V | infeasibleValuation ) |
Constructor construct an implicit JaCoPutilSpace.
| name | the name of the JaCoPutilSpace |
| constraints | a list of JaCoP Constraints |
| decompCons | a list of JaCoP DecomposedConstraints (may be null) |
| valuationVars | a list of valuation variables |
| allVars | all the variables of the space including the projected out and sliced out variables |
| vars | the variables |
| projectedVars | the variables whose projection has been requested |
| slicedVars | the variables that have been sliced out |
| maximize | whether we should maximize the utility or minimize the cost |
| defaultValuation | The default valuation |
| infeasibleValuation | The infeasible valuation |
References addDecompConstraint(), constraints, defaultValuation, infeasibleValuation, initStore(), maximize, name, projectedVars, slicedVars, valuationVars, and vars.

|
staticpackage |
References JaCoPutilSpace(), and knownSpaces.

|
private |
Adds a DecomposedConstraint.
| cons | the constraint |
References addDecompConstraint(), and store.
Referenced by addDecompConstraint(), JaCoPutilSpace(), and JaCoPutilSpace().

| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.augment | ( | AddableInteger[] | variablesValues | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.augment | ( | AddableInteger[] | variablesValues, |
| V | valuationValue ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.blindProject | ( | String | varOut, |
| boolean | maximize ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References getName(), JaCoPutilSpace(), and maximize.
Referenced by blindProjectAll().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.blindProject | ( | String[] | varsOut, |
| boolean | maximize ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References getName(), JaCoPutilSpace(), and maximize.

| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.blindProjectAll | ( | boolean | maximize | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References blindProject(), getVariables(), and maximize.

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.changeVariablesOrder | ( | final String[] | variablesOrder | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References initStore(), JaCoPutilSpace(), and vars.

| JaCoPutilSpace< V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.clone | ( | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References JaCoPutilSpace().
Referenced by initStore(), iterator(), iterator(), iteratorBestFirst(), and rescale().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.compose | ( | String[] | vars, |
| BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > | substitution ) |
References vars.
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.consensus | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< AddableInteger, V > > | distributions, | ||
| boolean | maximum ) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.consensusAllSols | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< AddableInteger, V > > | distributions, | ||
| boolean | maximum ) |
| frodo2.solutionSpaces.UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.consensusAllSolsExpect | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< AddableInteger, V > > | distributions, | ||
| boolean | maximum ) |
| frodo2.solutionSpaces.UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.consensusExpect | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< AddableInteger, V > > | distributions, | ||
| boolean | maximum ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.countsCCs | ( | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.equals | ( | Object | o | ) |
Referenced by getIndex().
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.equivalent | ( | BasicUtilitySolutionSpace< AddableInteger, V > | space | ) |
References getDomains(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.getNbrSolutions(), getVariables(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.Iterator< V >.hasNext(), frodo2.solutionSpaces.BasicUtilitySolutionSpace< V extends Addable< V >, U extends Serializable >.iterator(), iterator(), and frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.SparseIterator< V, U >.nextUtility().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.expectation | ( | Map< String, UtilitySolutionSpace< AddableInteger, V > > | distributions | ) |
| Class< V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getClassOfU | ( | ) |
| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getDefaultUtility | ( | ) |
| AddableInteger[] frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getDomain | ( | int | index | ) |
| AddableInteger[] frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getDomain | ( | String | variable | ) |
| AddableInteger[] frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getDomain | ( | String | variable, |
| int | index ) |
| AddableInteger[][] frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getDomains | ( | ) |
Referenced by equivalent(), and readExternal().
| int frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getIndex | ( | String | variable | ) |
References equals().

| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getName | ( | ) |
Referenced by blindProject(), blindProject(), project(), and project().
| long frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getNumberOfSolutions | ( | ) |
References allDoms.
Referenced by getUtility(), toHypercube(), and writeExternal().
| int frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getNumberOfVariables | ( | ) |
Referenced by readExternal().
| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getOwner | ( | ) |
References owner.
|
package |
References projectedVars.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIterBestFirst< V extends Addable< V > >.searchAllSolutions().
|
package |
Returns an array of all possible values that the projected variable provided as a parameter can take in this JaCoPutilSpace.
| variable | the name of the projected variable |
References allDoms.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility().
| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getRelationName | ( | ) |
|
package |
| StoreCloneable frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getStore | ( | ) |
References store.
| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getUtility | ( | AddableInteger[] | assignments | ) |
References constraints, costVar, imposeConstraints(), frodo2.solutionSpaces.AddableInteger.intValue(), projectedVars, store, and vars.
Referenced by getUtility(), getUtility(), getUtility(), join(), resolve(), and toHypercube().

| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getUtility | ( | long | index | ) |
References allDoms, getNumberOfSolutions(), getUtility(), and vars.

| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getUtility | ( | Map< String, AddableInteger > | assignments | ) |
References getUtility(), and vars.

| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getUtility | ( | String[] | variablesNames, |
| AddableInteger[] | assignments ) |
References org.jacop.core.IntVarCloneable.equals(), getUtility(), and vars.

| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getVariable | ( | int | index | ) |
References vars.
| String[] frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.getVariables | ( | ) |
Referenced by blindProjectAll(), equivalent(), iterator(), projectAll(), and readExternal().
| int frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.hashCode | ( | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.imposeConstraints | ( | ) |
Imposes the constraints and calls the consistency function.
References costVar, org.jacop.core.StoreCloneable.findOrCloneInto(), initStore(), max(), min(), store, valuationVar, and valuationVars.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility(), getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter2< V extends Addable< V > >.initSearch(), and frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIterBestFirst< V extends Addable< V > >.searchBestUtility().

|
package |
Creates the store (if not already created) and clones the variables and constraints into it.
References clone(), org.jacop.core.StoreCloneable.findOrCloneInto(), and initStore().
Referenced by changeVariablesOrder(), imposeConstraints(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter2< V extends Addable< V > >.initSearch(), initStore(), JaCoPutilSpace(), JaCoPutilSpace(), join(), and project().

| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.isIncludedIn | ( | BasicUtilitySolutionSpace< AddableInteger, V > | space | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.isIncludedIn | ( | UtilitySolutionSpace< AddableInteger, V > | space | ) |
| UtilitySolutionSpace.Iterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.iterator | ( | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References iterator().
Referenced by equivalent(), iterator(), iterator(), iterator(), iterator(), iterator(), resolve(), sparseIter(), sparseIter(), sparseIter(), toHypercube(), and writeExternal().

|
private |
Returns an iterator.
| sparse | whether the iterator should skip infeasible solutions |
References allDoms, getVariables(), frodo2.solutionSpaces.hypercube.ScalarHypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), and vars.

| UtilitySolutionSpace.Iterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.iterator | ( | String[] | order | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References iterator().

|
private |
Returns an iterator with a specific variable order.
| order | the order of iteration of the variables |
| sparse | whether to return an iterator that skips infeasible solutions |
References allDoms, clone(), frodo2.solutionSpaces.hypercube.ScalarHypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), iterator(), sparseIter(), and vars.

| Iterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.iterator | ( | String[] | variables, |
| AddableInteger | domains[][] ) |
References iterator().

| UtilitySolutionSpace.Iterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.iterator | ( | String[] | variables, |
| AddableInteger | domains[][], | ||
| AddableInteger[] | assignment ) |
References iterator().

|
private |
Returns an iterator.
| variables | The variables to iterate over |
| domains | The domains of the variables over which to iterate |
| assignment | An array that will be used as the output of nextSolution() |
| sparse | Whether to return an iterator that skips infeasible solutions |
References clone(), getDomain(), frodo2.solutionSpaces.hypercube.BasicHypercube< V extends Addable< V >, U extends Serializable >.intersection(), frodo2.solutionSpaces.hypercube.ScalarHypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), JaCoPutilSpace(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.NullHypercube< V extends Addable< V >, U extends Addable< U > >.NULL, and vars.

| UtilitySolutionSpace.IteratorBestFirst< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.iteratorBestFirst | ( | boolean | maximize | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References clone(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iteratorBestFirst(), JaCoPutilSpace(), maximize, and frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.NullHypercube< V extends Addable< V >, U extends Addable< U > >.NULL.

| IteratorBestFirst< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.iteratorBestFirst | ( | boolean | maximize, |
| String[] | fixedVariables, | ||
| AddableInteger[] | fixedValues ) |
References maximize.
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | SolutionSpace< AddableInteger > | space | ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | SolutionSpace< AddableInteger > | space, |
| String[] | totalVariables ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | SolutionSpace< AddableInteger >[] | spaces | ) |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | SolutionSpace< AddableInteger >[] | spaces, |
| String[] | totalVariablesOrder ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | UtilitySolutionSpace< AddableInteger, V > | space | ) |
References join().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | UtilitySolutionSpace< AddableInteger, V > | space, |
| String[] | totalVariables ) |
Referenced by join().
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.join | ( | UtilitySolutionSpace< AddableInteger, V >[] | spaces | ) |
References allDoms, constraints, defaultValuation, frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.SparseIterator< V, U >.getCurrentUtility(), getUtility(), hashCode(), initStore(), JaCoPutilSpace(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.nextSolution(), projectedVars, frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.slice(), slicedVars, frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.sparseIter(), valuationVars, and vars.

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.joinMinNCCCs | ( | UtilitySolutionSpace< AddableInteger, V > | space | ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.joinMinNCCCs | ( | UtilitySolutionSpace< AddableInteger, V >[] | spaces | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.knows | ( | Class<?> | spaceClass | ) |
References knownSpaces.
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.max | ( | String | variable | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
Referenced by imposeConstraints().
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.maximize | ( | ) |
References maximize.
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.min | ( | String | variable | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
Referenced by imposeConstraints().
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.multiply | ( | UtilitySolutionSpace< AddableInteger, V > | space | ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.multiply | ( | UtilitySolutionSpace< AddableInteger, V > | space, |
| String[] | totalVariables ) |
Referenced by rescale().
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.multiply | ( | UtilitySolutionSpace< AddableInteger, V >[] | spaces | ) |
| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.prettyPrint | ( | V | ignoredValuation | ) |
| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.project | ( | int | numberToProject, |
| boolean | maximum ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
| ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.project | ( | String | variableName, |
| boolean | maximum ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References getName(), JaCoPutilSpace(), and vars.

| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.project | ( | String[] | vars, |
| boolean | maximum ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References getName(), initStore(), JaCoPutilSpace(), and vars.
Referenced by projectAll(), and projectAll().

| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.projectAll | ( | boolean | maximum | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References getVariables(), and project().

| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.projectAll | ( | boolean | maximum, |
| String[] | order ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References project().

| UtilitySolutionSpace.ProjOutput< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.projExpectMonotone | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< AddableInteger, V > > | distributions, | ||
| boolean | maximum ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.readExternal | ( | ObjectInput | in | ) | throws IOException, ClassNotFoundException |
References frodo2.solutionSpaces.AddableInteger.externalize(), getDomains(), getNumberOfVariables(), getVariables(), frodo2.solutionSpaces.AddableInteger.getZero(), frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V extends Addable< V >, U extends Serializable >.hasNext(), frodo2.solutionSpaces.AddableInteger.intValue(), frodo2.solutionSpaces.hypercube.ScalarBasicSpaceIter< V extends Addable< V >, U extends Serializable >.nextSolution(), frodo2.solutionSpaces.AddableInteger.readExternal(), readExternal(), frodo2.solutionSpaces.AddableInteger.readResolve(), valuationDom, valuationVar, and vars.
Referenced by readExternal().

|
private |
| ObjectStreamException | should never be thrown |
| SolutionSpace< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.renameAllVars | ( | String[] | newVarNames | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.renameVariable | ( | String | oldName, |
| String | newName ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.rescale | ( | V | add, |
| V | multiply ) |
References clone(), constraints, defaultValuation, infeasibleValuation, JaCoPutilSpace(), maximize, multiply(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.NullHypercube< V extends Addable< V >, U extends Addable< U > >.NULL, and valuationVars.

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.resolve | ( | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References resolve().
Referenced by resolve().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.resolve | ( | final boolean | sparse | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References constraints, frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.getCurrentSolution(), getUtility(), iterator(), JaCoPutilSpace(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.SparseIterator< V, U >.nextUtility(), sparseIter(), store, valuationDom, valuationVar, valuationVars, and vars.

| Map< AddableInteger, Double > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.sample | ( | int | nbrSamples | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setDefaultUtility | ( | final V | valuation | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setDomain | ( | String | var, |
| AddableInteger[] | dom ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setInfeasibleUtility | ( | V | valuation | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setName | ( | String | name | ) |
References name.
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setOwner | ( | String | owner | ) |
References owner.
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setProblem | ( | ProblemInterface< AddableInteger, ?> | problem | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setRelationName | ( | String | name | ) |
References name.
| boolean frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setUtility | ( | AddableInteger[] | variablesValues, |
| V | valuation ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.setUtility | ( | long | index, |
| V | valuation ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.slice | ( | AddableInteger[] | variablesValues | ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.slice | ( | final Map< String, AddableInteger > | assignments | ) |
Slices this space over input assignments.
| assignments | the assignments |
References hashCode(), and JaCoPutilSpace().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.slice | ( | String | var, |
| AddableInteger | val ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.slice | ( | String | varName, |
| AddableInteger[] | subDomain ) |
References hashCode(), and JaCoPutilSpace().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.slice | ( | String[] | variablesNames, |
| AddableInteger[] | assignments ) |
References slice().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.slice | ( | String[] | variablesNames, |
| AddableInteger | subDomains[][] ) |
Referenced by slice().
| UtilitySolutionSpace.SparseIterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.sparseIter | ( | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References iterator().
Referenced by iterator(), resolve(), sparseIter(), and sparseIter().

| SparseIterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.sparseIter | ( | String | variable, |
| AddableInteger[] | domain ) |
Returns a sparse iterator over a single variable.
| variable | the variable |
| domain | the variable's domain |
References sparseIter().

| UtilitySolutionSpace.SparseIterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.sparseIter | ( | String[] | order | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References iterator().

| SparseIterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.sparseIter | ( | String[] | variables, |
| AddableInteger | domains[][] ) |
References sparseIter().

| UtilitySolutionSpace.SparseIterator< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.sparseIter | ( | String[] | variables, |
| AddableInteger | domains[][], | ||
| AddableInteger[] | assignment ) |
References iterator().

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.split | ( | V | threshold, |
| boolean | maximum ) |
| Hypercube< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.toHypercube | ( | ) |
Implements frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.
References allDoms, getNumberOfSolutions(), getUtility(), iterator(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.SparseIterator< V, U >.nextUtility(), and vars.

| String frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.toString | ( | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.writeExternal | ( | ObjectOutput | out | ) | throws IOException |
References frodo2.solutionSpaces.AddableInteger.externalize(), getNumberOfSolutions(), iterator(), maximize, vars, and frodo2.solutionSpaces.AddableInteger.writeExternal().

|
package |
The variable names and domains, including the projected out and sliced out variables, but excluding the valuation variable.
Referenced by getDomain(), getDomain(), getDomains(), getNumberOfSolutions(), getProjVarDomain(), getUtility(), iterator(), iterator(), JaCoPutilSpace(), join(), and toHypercube().
|
private |
The list of JaCoP Constraints.
Referenced by getUtility(), JaCoPutilSpace(), JaCoPutilSpace(), join(), rescale(), and resolve().
|
private |
The total cost variable.
Referenced by getUtility(), and imposeConstraints().
| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.defaultValuation |
The default valuation.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter2< V extends Addable< V > >.getNextFromSearch(), JaCoPutilSpace(), join(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter2< V extends Addable< V > >.nextUtility(), rescale(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIterBestFirst< V extends Addable< V > >.searchAllSolutions(), and frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIterBestFirst< V extends Addable< V > >.searchBestUtility().
| V frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >.infeasibleValuation |
The infeasible valuation.
Referenced by JaCoPutilSpace(), JaCoPutilSpace(), rescale(), and frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIterBestFirst< V extends Addable< V > >.searchBestUtility().
|
package |
The consistency of the JaCoP Store.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIter2< V extends Addable< V > >.initSearch(), and frodo2.solutionSpaces.JaCoP.JaCoPutilSpaceIterBestFirst< V extends Addable< V > >.searchBestUtility().
|
staticprivate |
The types of spaces that we know how to handle.
Referenced by [static initializer](), and knows().
|
private |
For now (and maybe forever) we will assume that all variables are projected in the same way (all minimized or all maximized).
Referenced by blindProject(), blindProject(), blindProjectAll(), iteratorBestFirst(), iteratorBestFirst(), JaCoPutilSpace(), JaCoPutilSpace(), maximize(), rescale(), and writeExternal().
|
private |
The name of the UtilSpace.
Referenced by JaCoPutilSpace(), JaCoPutilSpace(), setName(), and setRelationName().
|
private |
The owner of this space.
Referenced by getOwner(), JaCoPutilSpace(), and setOwner().
|
private |
The ordered variables whose projection has been requested.
Referenced by getProjectedVars(), getUtility(), JaCoPutilSpace(), and join().
|
private |
The variables that have been grounded by a slice operation.
Referenced by JaCoPutilSpace(), and join().
|
package |
The JaCoP Store.
Referenced by addDecompConstraint(), getStore(), frodo2.solutionSpaces.JaCoP.JaCoPoptAssignments.getUtility(), getUtility(), imposeConstraints(), and resolve().
|
private |
A restriction on the domain of the valuation variable (if any).
Referenced by readExternal(), and resolve().
|
private |
The total valuation variable.
Referenced by imposeConstraints(), readExternal(), and resolve().
|
private |
The list of valuation variables from the constraints.
Referenced by imposeConstraints(), JaCoPutilSpace(), JaCoPutilSpace(), join(), rescale(), and resolve().
|
private |
The ordered variables of the space.
Referenced by changeVariablesOrder(), compose(), getDomain(), getDomains(), getUtility(), getUtility(), getUtility(), getUtility(), getVariable(), iterator(), iterator(), iterator(), JaCoPutilSpace(), JaCoPutilSpace(), join(), project(), project(), readExternal(), resolve(), toHypercube(), and writeExternal().