|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A DCOP problem that is defined using JaCoP variables and constraints. More...

Public Member Functions | |
| JaCoPproblem (boolean maximize) | |
| Constructor. | |
| JaCoPproblem (boolean maximize, boolean publicAgents, boolean publicVars, boolean privateConstraints, boolean extendedRandNeighborhoods) | |
| Constructor. | |
| Collection< IntVarCloneable > | getJaCoPvars () |
| void | addVariable (IntVarCloneable var, String owner) |
| Adds a JaCoP variable. | |
| void | addConstraint (Constraint constraint) |
| Adds a JaCoP Constraint. | |
| void | addSoftConstraint (Constraint constraint, IntVarCloneable objVar) |
| Adds a JaCoP Constraint. | |
| void | addDecompConstraint (DecomposedConstraintCloneableInterface constraint) |
| Adds a JaCoP DecomposedConstraint. | |
| void | addSoftDecompConstraint (DecomposedConstraintCloneableInterface constraint, IntVarCloneable objVar) |
| Adds a JaCoP soft DecomposedConstraint. | |
| void | reset (ProblemInterface< AddableInteger, V > newProblem) |
| void | setDomClass (Class< AddableInteger > domClass) |
| Class< AddableInteger > | getDomClass () |
| boolean | multipleTypes () |
| void | incrNCCCs (long incr) |
| long | getNCCCs () |
| void | setNCCCs (long ncccs) |
| Set< String > | getExtVars () |
| boolean | addVariable (String name, String owner, String domain) |
| boolean | addVariable (String name, String owner, AddableInteger[] domain) |
| void | rescale (V multiply, V add) |
| void | setDomain (String var, AddableInteger[] dom) |
| boolean | setOwner (String cons, String owner) |
| Map< String, Set< String > > | getAnonymNeighborhoods () |
| Map< String, Set< String > > | getAnonymNeighborhoods (String agent) |
| List<? extends UtilitySolutionSpace< AddableInteger, V > > | getProbabilitySpaces () |
| List<? extends UtilitySolutionSpace< AddableInteger, V > > | getProbabilitySpaces (String var) |
| void | setProbSpace (String var, Map< AddableInteger, Double > prob) |
| boolean | removeSpace (String name) |
| boolean | addSolutionSpace (UtilitySolutionSpace< AddableInteger, V > space) |
| UtilitySolutionSpace< AddableInteger, V > | getUtility (Map< String, AddableInteger > assignments, boolean withAnonymVars) |
| UtilitySolutionSpace< AddableInteger, V > | getExpectedUtility (Map< String, AddableInteger > assignments) |
| UtilitySolutionSpace< AddableInteger, V > | getParamUtility (Map< String[], BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > > assignments) |
| JaCoPproblem< V > | getSubProblem (String agent) |
| void | setUtilClass (Class< V > utilClass) |
| void | ground (String varName, AddableInteger val) |
| Map< String, ? extends UtilitySolutionSpace< AddableInteger, V > > | getProbabilitySpacePerRandVar () |
| JaCoPproblem< V > | clone () |
| Public Member Functions inherited from frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > > | |
| String | toString () |
| String | getAgent () |
| Set< String > | getVariables (final String owner) |
| V[] | getDomain (String var) |
| int | getDomainSize (String var) |
| Map< String, Set< String > > | getNeighborhoods () |
| Map< String, Integer > | getNeighborhoodSizes () |
| Map< String, Integer > | getNeighborhoodSizes (String agent) |
| int | getNbrNeighbors (String var) |
| int | getNbrNeighbors (String var, boolean withAnonymVars) |
| HashSet< String > | getNeighborVars (String var) |
| HashSet< String > | getNeighborVars (String var, boolean withAnonymVars) |
| int | getNumberOfCoordinationConstraints () |
| Map< String, Set< String > > | getAgentNeighborhoods () |
| Map< String, Set< String > > | getAgentNeighborhoods (String agent) |
| Map< String, Set< String > > | getVarScopes () |
| void | setAgent (String name) |
| Sets the name of the agent owning this subproblem. | |
| Set< String > | getAgents () |
| Class< U > | getUtilClass () |
| U | getMinInfUtility () |
| U | getPlusInfUtility () |
| int | getNbrVars () |
| int | getNbrVars (String agent) |
| int | getNbrIntVars () |
| Map< String, String > | getOwners () |
| String | getOwner (String var) |
| boolean | isRandom (String var) |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces () |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (boolean withAnonymVars) |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var, boolean withAnonymVars) |
| List<? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var, Set< String > forbiddenVars) |
| List<? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var, final boolean withAnonymVars, Set< String > forbiddenVars) |
| List<? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (Set< String > vars, boolean withAnonymVars, Set< String > forbiddenVars) |
| UtilitySolutionSpace< V, U > | getUtility (Map< String, V > assignments) |
| Set< String > | getVariables () |
| Set< String > | getMyVars () |
| Set< String > | getAnonymVars () |
| Set< String > | getRandVars () |
| Set< String > | getAllVars () |
| U | getZeroUtility () |
| boolean | maximize () |
| void | setMaximize (final boolean maximize) |
| void | setUtilClass (Class< U > utilClass) |
| boolean | addAgent (String agent) |
| Map< String, Set< String > > | getNeighborhoods (String agent) |
| Map< String, Set< String > > | getNeighborhoods (String agent, boolean withAnonymVars, boolean onlyAnonymVars) |
| UtilitySolutionSpace< V, U > | addUnarySpace (String name, String var, V[] dom, U[] utils) |
| Public Member Functions inherited from frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > > | |
| boolean | addVariable (String name, String owner, V[] domain) |
| Adds a new variable. | |
| void | rescale (U multiply, U add) |
| Rescales the problem. | |
| void | setDomain (String var, V[] dom) |
| Sets the domain of a variable. | |
| void | setProbSpace (String var, Map< V, Double > prob) |
| Adds to the problem a probability space for the input random variable. | |
| boolean | addSolutionSpace (UtilitySolutionSpace< V, U > space) |
| Adds a solution space to the problem. | |
| UtilitySolutionSpace< V, U > | getUtility (Map< String, V > assignments, final boolean withAnonymVars) |
| Computes the total utility of the input assignment to variables. | |
| UtilitySolutionSpace< V, U > | getExpectedUtility (Map< String, V > assignments) |
| Computes the expectation over the random variables of the utility for the input assignments. | |
| UtilitySolutionSpace< V, U > | getParamUtility (Map< String[], BasicUtilitySolutionSpace< V, ArrayList< V > > > assignments) |
| Computes the total utility of the input assignment to variables, conditioned on the values of parameters. | |
| void | ground (String var, V val) |
| Adds a constraint that enforces that var = val. | |
| Public Member Functions inherited from frodo2.solutionSpaces.ProblemInterface< V, U > | |
| void | reset (ProblemInterface< V, U > newProblem) |
| Resets this problem to be the same as the input one. | |
| void | setDomClass (Class< V > domClass) |
| Sets the class to be used for variable values. | |
| Class< V > | getDomClass () |
| void | setUtilClass (Class< U > utilClass) |
| Sets the class to be used for utility values. | |
| Class< U > | getUtilClass () |
| U | getZeroUtility () |
| U | getPlusInfUtility () |
| U | getMinInfUtility () |
| String | getAgent () |
| Set< String > | getAgents () |
| ProblemInterface< V, U > | getSubProblem (String agent) |
| Builds the subproblem description for a given agent by extracting it from the overall problem description. | |
| boolean | multipleTypes () |
| void | incrNCCCs (long incr) |
| Increments the number of constraint checks. | |
| long | getNCCCs () |
| void | setNCCCs (long ncccs) |
| Sets the NCCC count. | |
Protected Attributes | |
| final boolean | publicVars |
| Whether each variable is known to each agent. | |
| final boolean | privateConstraints |
If true, any constraint with a specific owner is only known by that owner. | |
| Protected Attributes inherited from frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > > | |
| boolean | maximize |
| Whether this is a maximization or a minimization problem. | |
| Map< String, String > | owners |
| For each variable, the name of its owner agent. | |
| Set< String > | randVars |
| The random variables. | |
| HashSet< String > | agents = new HashSet<String> () |
| The set of agents. | |
| List< UtilitySolutionSpace< V, U > > | spaces |
| The list of solution spaces. | |
| Map< String, V[]> | domains |
| The domain of each variable. | |
| Class< U > | utilClass = (Class<U>) AddableInteger.class |
| The class used for utility values. | |
| String | agentName |
| The name of the agent owning this subproblem. | |
| final boolean | publicAgents |
| Whether each agent knows the identities of all agents. | |
| final boolean | extendedRandNeighborhoods |
If true, neighborhood relationships between decision variables are extended through random variables. | |
| final boolean | mpc |
| Whether to behave in MPC mode. | |
| HashMap< String, Set< String > > | varScopes = new HashMap<String, Set<String>> () |
| For each shared variable, the names of the agents in its scope. | |
Private Member Functions | |
| void | addSoftConstraint (Constraint constraint, IntVarCloneable objVar, final boolean excludeObjVar) |
| Adds a JaCoP Constraint. | |
| AddableInteger[] | buildDomain (Var jacopVar) |
| Constructs an AddableInteger[] domain for an input JaCoP variable. | |
| boolean | hasConstraint (String name) |
| Checks whether this problem contains a space with the input name. | |
Private Attributes | |
| HashMap< String, IntVarCloneable > | vars = new HashMap<String, IntVarCloneable> () |
| The JaCoP variables, indexed by name. | |
| V | zeroValuation |
| The zero valuation. | |
Static Private Attributes | |
| static final long | serialVersionUID = 8959353326324207706L |
| Used for serialization. | |
Additional Inherited Members | |
| Protected Member Functions inherited from frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > > | |
| AbstractProblem () | |
| Constructor. | |
| AbstractProblem (boolean maximize, boolean publicAgents, boolean mpc, boolean extendedRandNeighborhoods) | |
| Constructor. | |
| Set< String > | getScope (String var) |
| Returns the agent scope of the input anonymous variable. | |
| U | getInfeasibleUtil () |
| void | setVarScope (String var, Set< String > scope) |
| Sets the agent scope of a shared variable. | |
A DCOP problem that is defined using JaCoP variables and constraints.
| <V> | the type used for valuations |
| frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.JaCoPproblem | ( | boolean | maximize | ) |
Constructor.
| maximize | whether this is a maximization problem (true) or a minimization problem (false) |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.maximize.
Referenced by clone(), and getSubProblem().
| frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.JaCoPproblem | ( | boolean | maximize, |
| boolean | publicAgents, | ||
| boolean | publicVars, | ||
| boolean | privateConstraints, | ||
| boolean | extendedRandNeighborhoods ) |
Constructor.
| maximize | Whether this is a maximization problem (true) or a minimization problem (false) |
| publicAgents | Whether each agent knows the identities of all agents |
| publicVars | Whether each variable is known to each agent |
| privateConstraints | If true, any constraint with a specific owner is only known by that owner |
| extendedRandNeighborhoods | Whether neighborhood relationships between decision variables are extended through random variables |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.extendedRandNeighborhoods, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.maximize, privateConstraints, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.publicAgents, and publicVars.
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addConstraint | ( | Constraint | constraint | ) |
Adds a JaCoP Constraint.
| constraint | the constraint |
References addSoftConstraint().
Referenced by addSolutionSpace(), ground(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_CumulativeOptional(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_CumulativeUnary(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_CumulativeUnaryOptional(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_DisjointConditional(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_GCC(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Geost(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_int_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_intArray_IntVar_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_IntDomain(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_IntVar_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_IntVar_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_IntVarArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_IntVarArray_IntVar_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVar_PrimitiveConstraint(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_int_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_int_int_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_intArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_intArray_intArray_intArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_intArray_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_intArrayArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntervalDomain_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVar_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVar_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVarArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVarArray_intArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVarArray_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVarArray_IntVarArray_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVarArray_IntVarArray_IntVarArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_PrimitiveConstraintArray(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Linear(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_LinearInt(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Not(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_PrimitiveConstraint_IntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_PrimitiveConstraint_PrimitiveConstraint(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_PrimitiveConstraint_PrimitiveConstraint_PrimitiveConstraint(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Regular(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Sum(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_ValuePrecede().

| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addDecompConstraint | ( | DecomposedConstraintCloneableInterface | constraint | ) |
Adds a JaCoP DecomposedConstraint.
| constraint | the constraint |
References addSoftDecompConstraint().
Referenced by frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Arithmetic(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntervalDomain_int_int_int(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVar_Decomposed(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArray_IntVarArray_IntVarArray_IntVarArray_Decomposed(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_IntVarArrayArray(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Stretch().

| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addSoftConstraint | ( | Constraint | constraint, |
| IntVarCloneable | objVar ) |
Adds a JaCoP Constraint.
| constraint | the constraint |
| objVar | the objective variable to be minimized or maximized |
References addSoftConstraint().
Referenced by addConstraint(), addSoftConstraint(), addSolutionSpace(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_Knapsack(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_NetworkFlow().

|
private |
Adds a JaCoP Constraint.
| constraint | the constraint |
| objVar | the objective variable to be minimized or maximized |
| excludeObjVar | whether to exclude the objective variable from the variables in scope of the output JaCoPutilSpace |
References buildDomain().

| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addSoftDecompConstraint | ( | DecomposedConstraintCloneableInterface | constraint, |
| IntVarCloneable | objVar ) |
Adds a JaCoP soft DecomposedConstraint.
| constraint | the constraint |
| objVar | the objective variable to be minimized or maximized (may be null) |
References addSoftDecompConstraint(), and buildDomain().
Referenced by addDecompConstraint(), addSoftDecompConstraint(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_SoftAlldifferent(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.test_SoftGCC().

| boolean frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addSolutionSpace | ( | UtilitySolutionSpace< AddableInteger, V > | space | ) |
References addConstraint(), addSoftConstraint(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.SparseIterator< V, U >.getCurrentUtility(), hasConstraint(), frodo2.solutionSpaces.SolutionSpace< V extends Addable< V > >.SparseIterator< V >.nextSolution(), frodo2.solutionSpaces.hypercube.Hypercube< V extends Addable< V >, U extends Addable< U > >.NullHypercube< V extends Addable< V >, U extends Addable< U > >.NULL, and frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.sparseIter().
Referenced by clone(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.solve().

| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addVariable | ( | IntVarCloneable | var, |
| String | owner ) |
Adds a JaCoP variable.
| var | the variable |
| owner | the owning agent (null if the variable is public) |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.agents, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.domains, and frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.owners.
Referenced by clone(), getSubProblem(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.newIntVar(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.newIntVarArray(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.solve().
| boolean frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addVariable | ( | String | name, |
| String | owner, | ||
| AddableInteger[] | domain ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.addVariable | ( | String | name, |
| String | owner, | ||
| String | domain ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
|
private |
Constructs an AddableInteger[] domain for an input JaCoP variable.
| jacopVar | the JaCoP variable |
Referenced by addSoftConstraint(), and addSoftDecompConstraint().
| JaCoPproblem< V > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.clone | ( | ) |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.addAgent(), addSolutionSpace(), addVariable(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.extendedRandNeighborhoods, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getAgent(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getAgents(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getOwner(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), JaCoPproblem(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.maximize, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.publicAgents, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.setAgent(), and setUtilClass().

| Map< String, Set< String > > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getAnonymNeighborhoods | ( | ) |
Reimplemented from frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.
| Map< String, Set< String > > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getAnonymNeighborhoods | ( | String | agent | ) |
Reimplemented from frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.
| Class< AddableInteger > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getDomClass | ( | ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getExpectedUtility | ( | Map< String, AddableInteger > | assignments | ) |
| Set< String > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getExtVars | ( | ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
| Collection< IntVarCloneable > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getJaCoPvars | ( | ) |
Referenced by frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.solve().
| long frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getNCCCs | ( | ) |
| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getParamUtility | ( | Map< String[], BasicUtilitySolutionSpace< AddableInteger, ArrayList< AddableInteger > > > | assignments | ) |
| Map< String, ? extends UtilitySolutionSpace< AddableInteger, V > > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getProbabilitySpacePerRandVar | ( | ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
| List<? extends UtilitySolutionSpace< AddableInteger, V > > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getProbabilitySpaces | ( | ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
| List<? extends UtilitySolutionSpace< AddableInteger, V > > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getProbabilitySpaces | ( | String | var | ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
| JaCoPproblem< V > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getSubProblem | ( | String | agent | ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
References addVariable(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.agents, frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.clone(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.extendedRandNeighborhoods, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getAgents(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getOwner(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getVariables(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.isRandom(), JaCoPproblem(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.maximize, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.publicAgents, frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.setAgent(), setUtilClass(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.setVarScope(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.spaces, and frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.varScopes.

| UtilitySolutionSpace< AddableInteger, V > frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.getUtility | ( | Map< String, AddableInteger > | assignments, |
| boolean | withAnonymVars ) |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getInfeasibleUtil(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.getZeroUtility(), frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.spaces, and vars.
Referenced by frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testRandomExtensionalProblem().

| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.ground | ( | String | varName, |
| AddableInteger | val ) |
References addConstraint(), and frodo2.solutionSpaces.AddableInteger.intValue().

|
private |
Checks whether this problem contains a space with the input name.
| name | the name of the space |
Referenced by addSolutionSpace().
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.incrNCCCs | ( | long | incr | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.multipleTypes | ( | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.removeSpace | ( | String | name | ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.rescale | ( | V | multiply, |
| V | add ) |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.spaces.
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.reset | ( | ProblemInterface< AddableInteger, V > | newProblem | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.setDomain | ( | String | var, |
| AddableInteger[] | dom ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.setDomClass | ( | Class< AddableInteger > | domClass | ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.setNCCCs | ( | long | ncccs | ) |
| boolean frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.setOwner | ( | String | cons, |
| String | owner ) |
Implements frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.setProbSpace | ( | String | var, |
| Map< AddableInteger, Double > | prob ) |
| void frodo2.solutionSpaces.JaCoP.JaCoPproblem< V extends Addable< V > >.setUtilClass | ( | Class< V > | utilClass | ) |
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.utilClass.
Referenced by clone(), getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.setUp(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPproblemTest< V extends Addable< V > >.solve().
|
protected |
If true, any constraint with a specific owner is only known by that owner.
Else, constraint knowledge is shared by all involved.
Referenced by JaCoPproblem().
|
protected |
Whether each variable is known to each agent.
Referenced by JaCoPproblem().
|
staticprivate |
Used for serialization.
|
private |
The JaCoP variables, indexed by name.
Referenced by getUtility().
|
private |
The zero valuation.