|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This interface defines common functionalities in utility solution spaces in which the utilities are Addable. More...

Classes | |
| class | ProjOutput |
| The result of a projection. More... | |
| interface | SparseIterator |
| A UtilitySolutionSpace iterator that skips infeasible solutions. More... | |
| interface | Iterator |
| A UtilitySolutionSpace iterator that does NOT skip infeasible solutions. More... | |
| interface | IteratorBestFirst |
| A BasicUtilitySolutionSpace iterator that returns items in a best first order. More... | |
Public Member Functions | |
| UtilitySolutionSpace< V, U > | clone () |
| UtilitySolutionSpace< V, U > | resolve () |
| UtilitySolutionSpace< V, U > | resolve (boolean sparse) |
| Hypercube< V, U > | toHypercube () |
| boolean | isIncludedIn (UtilitySolutionSpace< V, U > space) |
| Checks if this UtilitySolutionSpace is included in the provided UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | changeVariablesOrder (String[] variables_order) |
| 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. | |
| ProjOutput< V, U > | project (String[] variables_names, boolean maximum) |
| Projects variables out of this UtilitySolutionSpace. | |
| ProjOutput< V, U > | project (int number_to_project, boolean maximum) |
| Projects a given number of variables out of this UtilitySolutionSpace. | |
| ProjOutput< V, U > | projectAll (boolean maximum) |
| Projects all variables. | |
| ProjOutput< V, U > | projectAll (boolean maximum, String[] order) |
| Projects all variables. | |
| ProjOutput< V, U > | project (String variable_name, boolean maximum) |
| Projects a single variable out of this UtilitySolutionSpace. | |
| UtilitySolutionSpace< V, U > | blindProject (String varOut, boolean maximize) |
| UtilitySolutionSpace< V, U > | blindProject (String[] varsOut, boolean maximize) |
| U | blindProjectAll (boolean maximize) |
| UtilitySolutionSpace< V, U > | min (String variable) |
| UtilitySolutionSpace< V, U > | max (String variable) |
| 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). | |
| Map< V, Double > | sample (int nbrSamples) |
| Samples this single-variable probability space. | |
| UtilitySolutionSpace< V, U > | rescale (U add, U multiply) |
| Rescales the utilities in this space. | |
| IteratorBestFirst< V, U > | iteratorBestFirst (boolean maximize) |
| IteratorBestFirst< V, U > | iteratorBestFirst (boolean maximize, String[] fixedVariables, V[] fixedValues) |
| SparseIterator< V, U > | sparseIter () |
| SparseIterator< V, U > | sparseIter (String[] order) |
| SparseIterator< V, U > | sparseIter (String[] variables, V[][] domains) |
| SparseIterator< V, U > | sparseIter (String[] variables, V[][] domains, V[] assignment) |
| Iterator< V, U > | iterator () |
| Iterator< V, U > | iterator (String[] order) |
| 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 () |
This interface defines common functionalities in utility solution spaces in which the utilities are Addable.
| <V> | the type used for variable values |
| <U> | the type used for utility values |
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.blindProject | ( | String | varOut, |
| boolean | maximize ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.blindProject(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP1(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP2(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP2< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.robust.WorstCaseUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.memory.MemoryBoundedUTIL< V extends Addable< V >, U extends Addable< U > >.projectAndSend(), frodo2.algorithms.dpop.stochastic.robust.WorstCaseUTIL< Val extends Addable< Val >, U extends Addable< U > >.sendOutput(), frodo2.algorithms.dpop.stochastic.robust.WorstCaseUTIL< Val extends Addable< Val >, U extends Addable< U > >.sendToParent(), frodo2.algorithms.adopt.test.testADOPT.simulateUTIL(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.Listener.simulateUTIL(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.blindProject | ( | String[] | varsOut, |
| boolean | maximize ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| U frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.blindProjectAll | ( | boolean | maximize | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.adopt.Preprocessing< Val extends Addable< Val >, U extends Addable< U > >.DP0< Val extends Addable< Val >, U extends Addable< U > >.processDFSOutput(), frodo2.algorithms.adopt.ADOPT< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Serializable &Addable< U > >.setLowerBoundChild(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testRandomExtensionalProblem().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.changeVariablesOrder | ( | String[] | variables_order | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.clone | ( | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.assign_CPA(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getSubProblem(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.solve().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.compose | ( | String[] | vars, |
| BasicUtilitySolutionSpace< V, ArrayList< V > > | substitution ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.getParamUtility(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getParamUtility(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.robust.WorstCaseUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), and frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.Listener.simulateUTILslice().
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.consensus | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< V, U > > | distributions, | ||
| boolean | maximum ) |
A projection operation that uses the consensus approach.
When choosing the "best" value for the variable that is projected out, instead of choosing, for each case, the optimal value, this method chooses the value that is optimal in most cases, when the values of the random variables are allowed to vary.
| varOut | the variable that is projected out |
| distributions | for each random variable, its weighted samples/probability distribution |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project().
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.consensusAllSols | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< V, U > > | distributions, | ||
| boolean | maximum ) |
A projection operation that uses the advanced consensus approach.
The normal consensus approach computes one optimal solution per scenario, risking to miss very promising optimal solutions. This advanced consensus approach compute ALL optimal solutions for each scenario.
| varOut | the variable that is projected out |
| distributions | for each random variable, its weighted samples/probability distribution |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project().
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.consensusAllSolsExpect | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< V, U > > | distributions, | ||
| boolean | maximum ) |
The composition of the consensusAllSols and expectation operations.
| varOut | the variable that is projected out |
| distributions | for each random variable, its weighted samples/probability distribution |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), and frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project().
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.consensusExpect | ( | String | varOut, |
| Map< String, UtilitySolutionSpace< V, U > > | distributions, | ||
| boolean | maximum ) |
The composition of the consensus and expectation operations.
| varOut | the variable that is projected out |
| distributions | for each random variable, its weighted samples/probability distribution |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), and frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
| distributions | for each random variable, its weighted samples/probability distribution |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.algorithms.dpop.param.ParamDPOPsolver< V extends Addable< V >, U extends Addable< U > >.getExpectedOptUtil(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.getExpectedUtility(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getExpectedUtility(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.sendOutput(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.sendToParent(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted().
| boolean frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.isIncludedIn | ( | UtilitySolutionSpace< V, U > | space | ) |
Checks if this UtilitySolutionSpace is included in the provided UtilitySolutionSpace.
"Inclusion" means that both spaces contain the same variables, and all assignments in this UtilitySolutionSpace appear with the same utility values in the input UtilitySolutionSpace.
| space | UtilitySolutionSpace object |
true if this UtilitySolutionSpace is included in the provided UtilitySolutionSpace object, and false otherwise Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| Iterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iterator | ( | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.blindProject(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.solutionSpaces.hypercube.ExpectationOutput< V extends Addable< V >, U extends Addable< U > >.ExpectationOutput(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.iterator(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.memory.MemoryBoundedUTIL< V extends Addable< V >, U extends Addable< U > >.projectAndSend(), frodo2.solutionSpaces.hypercube.BlindProjectOutput< V extends Addable< V >, U extends Addable< U > >.resolve(), frodo2.solutionSpaces.hypercube.ExpectationOutput< V extends Addable< V >, U extends Addable< U > >.resolve(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.sliceSpaces(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testExpectation(), and frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom().
| Iterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iterator | ( | String[] | order | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| Iterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iterator | ( | String[] | variables, |
| V | domains[][] ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| Iterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iterator | ( | String[] | variables, |
| V | domains[][], | ||
| V[] | assignment ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| IteratorBestFirst< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iteratorBestFirst | ( | boolean | maximize | ) |
| maximize | true when the order is from high to low utility, and false when the order is from low to high cost |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.vehiclerouting.test.VRPtests.testCompoundBestFirstIterator().
| IteratorBestFirst< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.iteratorBestFirst | ( | boolean | maximize, |
| String[] | fixedVariables, | ||
| V[] | fixedValues ) |
| maximize | true when the order is from high to low utility, and false when the order is from low to high cost |
| fixedVariables | variables whose values are fixed |
| fixedValues | the values to which the variables are fixed |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.join | ( | UtilitySolutionSpace< V, U > | space | ) |
Computes the join of this UtilitySolutionSpace with the input UtilitySolutionSpace.
Utilities are added to each other.
The order of the variables in the resulting UtilitySolutionSpace is not defined.
| space | the UtilitySolutionSpace to join with this one |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
Utilities are added to each other.
| space | the UtilitySolutionSpace to join with this one |
| total_variables | the order of the variables to be used in the resulting UtilitySolutionSpace |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.blindProject(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP1(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP2(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.expectation(), frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.getLocalSpace(), frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.h(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.init(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.solutionSpaces.hypercube.ScalarHypercube< V extends Addable< V >, U extends Addable< U > >.join(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.join(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.joinMinNCCCs(), frodo2.algorithms.dpop.param.ParamUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.notifyIn(), frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.varOrdering.factorgraph.FactorGraphGen< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.projectAndSend(), frodo2.algorithms.adopt.test.testADOPT.simulateUTIL(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.Listener.simulateUTIL(), frodo2.algorithms.dpop.param.test.ParamVALUEtest< U extends Addable< U > >.Listener.simulateUTILslice(), frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.Listener.simulateUTILslice(), frodo2.algorithms.adopt.test.testADOPT.startADOPT(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.startUTIL(), frodo2.algorithms.adopt.ADOPT< Val extends Addable< Val >, U extends Addable< U > >.VariableInfo< Val extends Addable< Val >, U extends Serializable &Addable< U > >.storeConstraint(), frodo2.algorithms.duct.Sampling< V extends Addable< V > >.VariableInfo.storeConstraint(), frodo2.solutionSpaces.vehiclerouting.test.VRPtests.testCompoundBestFirstIterator(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testExpectation(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testJoinRandom(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testProjectionRandom(), frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testSmartJoinRandom().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
Utilities are added to each other.
The order of the variables in the resulting UtilitySolutionSpace is not defined.
| spaces | an array of the UtilitySolutionSpaces to be added to this UtilitySolutionSpace |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
| space | the UtilitySolutionSpace to join with this one |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.joinMinNCCCs(), frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.joinMinNCCCs(), and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.joinMinNCCCs().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
| spaces | an array of the UtilitySolutionSpaces to be added to this UtilitySolutionSpace |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.max | ( | String | variable | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.min | ( | String | variable | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.multiply | ( | UtilitySolutionSpace< V, U > | space | ) |
Computes the join of this UtilitySolutionSpace with the input UtilitySolutionSpace.
Utilities are multiplied with each other.
The order of the variables in the resulting UtilitySolutionSpace is not defined.
| space | the UtilitySolutionSpace to join with this one |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
Utilities are multiplied with each other.
| space | the UtilitySolutionSpace to join with this one |
| total_variables | the order of the variables to be used in the resulting UtilitySolutionSpace |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.blindProject(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.compose(), frodo2.solutionSpaces.hypercube.JoinOutputHypercube< V extends Addable< V >, U extends Addable< U > >.expectation(), frodo2.solutionSpaces.hypercube.ExpectationOutput< V extends Addable< V >, U extends Addable< U > >.ExpectationOutput(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.multiply(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.multiply(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.projExpectMonotone(), rescale(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testExpectation(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testSmartJoinRandom().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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.
Utilities are multiplied to each other.
The order of the variables in the resulting UtilitySolutionSpace is not defined.
| spaces | an array of the UtilitySolutionSpaces to be multiplied with this UtilitySolutionSpace |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.project | ( | int | number_to_project, |
| boolean | maximum ) |
Projects a given number of variables out of this UtilitySolutionSpace.
The variables projected out are the last number_to_project variables in the UtilitySolutionSpace
| number_to_project | number of variables to project out |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.project | ( | String | variable_name, |
| boolean | maximum ) |
Projects a single variable out of this UtilitySolutionSpace.
| variable_name | the variable to project out |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.project | ( | String[] | variables_names, |
| boolean | maximum ) |
Projects variables out of this UtilitySolutionSpace.
"Projecting" a variable means that this variable is removed, by optimizing over its domain. The projection methods actually have two outputs: the UtilitySolutionSpace that results from projecting over the given variables, and the conditional optimal assignments to the projected variables, which can be represented using a BasicUtilitySolutionSpace whose utility values are optimal assignments.
| variables_names | the variables to be projected out |
| maximum | true if we should maximize the utility; false if it should be minimized |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.algorithms.dpop.count.CountSolutionsUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.stochastic.robust.WorstCaseUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.project(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testProjectionRandom().
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.projectAll | ( | boolean | maximum | ) |
Projects all variables.
| maximum | whether to maximize or minimize |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.privacy.EncryptedUTIL< V extends Addable< V >, U extends Addable< U >, E extends AddableLimited< U, E >.findOptimalValueForIsolatedVar(), and frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.init().
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.projectAll | ( | boolean | maximum, |
| String[] | order ) |
Projects all variables.
| maximum | whether to maximize or minimize |
| order | the desired order on variables |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| ProjOutput< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< 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).
| varOut | the variable to project out |
| distributions | for each random variable, its weighted samples/probability distribution |
| maximum | whether to maximize of minimize |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.project(), and frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.project().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.rescale | ( | U | add, |
| U | multiply ) |
Rescales the utilities in this space.
| add | add this value to all utilities |
| multiply | multiply all utilities with this value |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
References multiply().

| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.resolve | ( | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.algorithms.adopt.test.testPreprocessing.calculateDP1(), frodo2.algorithms.adopt.test.testPreprocessing.calculateDP2(), frodo2.algorithms.dpop.stochastic.test.ExpectedUTILtest.Listener.checkOutput(), frodo2.algorithms.dpop.UTILmsg< Val extends Addable< Val >, U extends Addable< U > >.fakeSerialize(), frodo2.algorithms.maxsum.MaxSum< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.memory.MemoryBoundedUTIL< V extends Addable< V >, U extends Addable< U > >.projectAndSend(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testExpectation().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.resolve | ( | boolean | sparse | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| Map< V, Double > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.sample | ( | int | nbrSamples | ) |
Samples this single-variable probability space.
| nbrSamples | desired number of samples |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice | ( | String | var, |
| V | val ) |
Slices this UtilitySolutionSpace over a single variable-value assignment.
| var | the variable to be assigned a value |
| val | the value to assign to the variable |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice | ( | String | var, |
| V[] | subDomain ) |
Slices this UtilitySolutionSpace over a single variable.
| var | the variable to be assigned a value |
| subDomain | the new domain for this variable (must be a subset of the original domain) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice | ( | String[] | variables_names, |
| V[] | values ) |
Returns a slice of this UtilitySolutionSpace.
Slicing corresponds to grounding some of the variables.
| variables_names | the variables to slice |
| values | the values for the variables |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice | ( | String[] | variables_names, |
| V | sub_domains[][] ) |
Returns a slice of this UtilitySolutionSpace.
Slicing corresponds to reducing the domains of some of the variables.
| variables_names | the variables to slice |
| sub_domains | the new domains for the variables |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
Referenced by frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.getLocalSpace(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getUtility(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.groundVars(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.memory.MemoryBoundedUTIL< V extends Addable< V >, U extends Addable< U > >.projectAndSend(), frodo2.algorithms.dpop.test.VALUEpropagationTest< U extends Addable< U > >.Listener.simulateUTILslice(), frodo2.solutionSpaces.hypercube.BlindProjectOutput< V extends Addable< V >, U extends Addable< U > >.slice(), frodo2.solutionSpaces.hypercube.BlindProjectOutput< V extends Addable< V >, U extends Addable< U > >.slice(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.sliceSpaces(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testConsensusWeighted(), frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testExpectation(), and frodo2.solutionSpaces.hypercube.tests.HypercubeTest.testSliceRandom().
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice | ( | V[] | variables_values | ) |
Returns a slice of this UtilitySolutionSpace.
| variables_values | array containing values of the last variables of the UtilitySolutionSpace |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| SparseIterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.sparseIter | ( | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addSolutionSpace(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.init(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.ExpectedUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.solutionSpaces.hypercube.BlindProjectOutput< V extends Addable< V >, U extends Addable< U > >.resolve(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.sparseIter(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.sparseIter(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.sparseIter(), and frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.sparseIter().
| SparseIterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.sparseIter | ( | String[] | order | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| SparseIterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.sparseIter | ( | String[] | variables, |
| V | domains[][] ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| SparseIterator< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.sparseIter | ( | String[] | variables, |
| V | domains[][], | ||
| V[] | assignment ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.
| UtilitySolutionSpace< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.split | ( | U | threshold, |
| boolean | maximum ) |
Returns a UtilitySolutionSpace containing all solutions corresponding to utility values bigger/smaller than the provided threshold.
| threshold | the threshold |
| maximum | true if we should keep solutions with utility values higher than the threshold; false if lower |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.
| Hypercube< V, U > frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.toHypercube | ( | ) |
Implemented in frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >, frodo2.solutionSpaces.JaCoP.JaCoPutilSpace< V extends Addable< V > >, frodo2.solutionSpaces.vehiclerouting.CompoundSpace< U extends Addable< U > >, and frodo2.solutionSpaces.vehiclerouting.VehicleRoutingSpace< U extends Addable< U > >.