|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
An XCSP parser that provides convenient methods to extract information from XCSP files. More...

Classes | |
| class | Relation |
| The representation of an XCSP relation. More... | |
Public Member Functions | |
| XCSPparser () | |
| Empty constructor. | |
| XCSPparser (Element root) | |
| Constructor from a JDOM root Element in XCSP format. | |
| XCSPparser (Document doc) | |
| Constructor from a JDOM Document in XCSP format. | |
| XCSPparser (Document doc, Boolean countNCCCs) | |
| Constructor from a JDOM Document in XCSP format. | |
| XCSPparser (Document doc, Boolean countNCCCs, HashSet< String > spacesToIgnore) | |
| Constructor from a JDOM Document in XCSP format. | |
| XCSPparser (Document doc, boolean countNCCCs, boolean extendedRandNeighborhoods) | |
| Constructor from a JDOM Document in XCSP format. | |
| XCSPparser (Document doc, boolean countNCCCs, boolean extendedRandNeighborhoods, boolean publicAgents) | |
| Constructor from a JDOM Document in XCSP format. | |
| XCSPparser (Document doc, Element params) | |
| Constructor. | |
| void | setDomClass (Class< V > domClass) |
| Sets the class to be used for variable values. | |
| Class< V > | getDomClass () |
| void | addSpaceToIgnore (String spaceToIgnore) |
| Adds a space to be ignored. | |
| void | setUtilClass (Class< U > utilClass) |
| Sets the class to be used for utility values. | |
| String | getAgent () |
| U | getZeroUtility () |
| U | getPlusInfUtility () |
| U | getMinInfUtility () |
| List< ? extends UtilitySolutionSpace< V, U > > | getProbabilitySpaces () |
| Extracts probability spaces from the constraints in the problem. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getProbabilitySpaces (String var) |
| Extracts probability spaces involving the input variable from the constraints in the problem. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces () |
| Returns the solution spaces in the problem. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var) |
| Extracts solution spaces involving the input variable from the constraints in the problem. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (final boolean withAnonymVars) |
| Extracts solution spaces from the constraints in the problem. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (DCOPProblemInterface< V, U > problem, final boolean withAnonymVars) |
| Extracts solution spaces from the constraints in the problem. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var, final boolean withAnonymVars) |
| Extracts solution spaces involving the input variable from the constraints in the problem. | |
| List<? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var, Set< String > forbiddenVars) |
| Returns the solution spaces involving the input variable and none of the forbidden variables. | |
| List<? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (String var, boolean withAnonymVars, Set< String > forbiddenVars) |
| Extracts solution spaces involving the input variable from the constraints in the problem. | |
| List<? extends UtilitySolutionSpace< V, U > > | getSolutionSpaces (Set< String > vars, boolean withAnonymVars, Set< String > forbiddenVars) |
| Extracts solution spaces involving the input variables from the constraints in the problem. | |
| boolean | isCountingNCCCs () |
| void | incrNCCCs (long incr) |
| Increments the number of constraint checks. | |
| void | setNCCCs (long ncccs) |
| Sets the NCCC count. | |
| long | getNCCCs () |
| boolean | removeSpace (String name) |
| Removes the space with the given name. | |
| boolean | addSolutionSpace (UtilitySolutionSpace< V, U > space) |
| Adds a solution space to the problem. | |
| Set< String > | getAgents () |
| String | getOwner (String var) |
| Returns the name of the agent owning the input variable. | |
| boolean | setOwner (String var, String owner) |
| Sets the owner agent for the input variable. | |
| Map< String, String > | getOwners () |
| int | getNbrVars () |
| Extracts the number of variables in the problem. | |
| int | getNbrVars (String owner) |
| Computes the number of variables owned by the input agent. | |
| int | getNbrIntVars () |
| Set< String > | getAllVars () |
| Set< String > | getVariables () |
| Set< String > | getVariables (String owner) |
| Returns the set of variables owned by a given agent. | |
| Set< String > | getMyVars () |
| Set< String > | getExtVars () |
| Set< String > | getAnonymVars () |
| boolean | addVariable (String name, String owner, String domain) |
| Adds a new variable. | |
| boolean | addVariable (String name, String owner, V[] domain) |
| Adds a new variable. | |
| XCSPparser< V, U > | getSubProblem (String agent) |
| Builds the subproblem description for a given agent by extracting it from the overall problem description. | |
| HashSet< String > | getNeighborVars (String var) |
| Extracts the collection of neighbors of a given variable. | |
| HashSet< String > | getNeighborVars (String var, final boolean withAnonymVars) |
| Extracts the collection of neighbors of a given variable. | |
| int | getNbrNeighbors (String var) |
| Extracts the number of neighbors of an input variable. | |
| int | getNbrNeighbors (String var, final boolean withAnonymVars) |
| Extracts the number of neighbors of an input variable. | |
| Map< String, HashSet< String > > | getNeighborhoods (String agent) |
| Parses the problem description to construct, for each variable owned by the input agent, its list of neighbors. | |
| Map< String, HashSet< String > > | getNeighborhoods () |
| Returns the neighborhood of each internal variable. | |
| Map< String, HashSet< String > > | getAnonymNeighborhoods (String agent) |
| Parses the problem description to construct, for each variable owned by the input agent, its list of neighbors with no specified owner. | |
| Map< String, HashSet< String > > | getAnonymNeighborhoods () |
| Map< String, HashSet< String > > | getNeighborhoods (String agent, final boolean withAnonymVars, final boolean onlyAnonymVars) |
| Parses the problem description to construct, for each variable owned by the input agent, its list of neighbors. | |
| Map< String, Integer > | getNeighborhoodSizes (String agent) |
| Computes the number of neighboring variables of all variables owned by a given agent. | |
| Map< String, Integer > | getNeighborhoodSizes () |
| Returns the number of neighboring variables of all internal variables. | |
| Map< String, Collection< String > > | getAgentNeighborhoods (String agent) |
| Gets the agent neighborhoods. | |
| Map< String, Collection< String > > | getAgentNeighborhoods () |
| Map< String, Collection< String > > | getBackyardNeighborhood (String var) |
| This method only makes sense in subclasses of XCSPparser that handle backyard variables. | |
| int | getDomainSize (String var) |
| Extracts the size of the domain of the input variable. | |
| V[] | getDomain (String var) |
| Extracts the domain of a given variable. | |
| void | setDomain (String var, V[] dom) |
| Sets the domain of a variable in the problem. | |
| void | setProbSpace (String var, Map< V, Double > prob) |
| Adds to the problem a probability space for the input random variable. | |
| String | toString () |
| String | toDOT () |
| boolean | isRandom (String var) |
| Returns whether the input variable is defined as a random variable. | |
| Document | groundVars (String[] vars, V[] values) |
| Transforms the problem into one where some variables' values have been fixed. | |
| UtilitySolutionSpace< V, U > | getUtility (Map< String, V > assignments) |
| Computes the total utility of the input assignment to variables, ignoring variables with no specified owner. | |
| 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. | |
| boolean | maximize () |
| void | setMaximize (boolean maximize) |
| Sets whether utility should be maximized, or cost minimized. | |
| void | rescale (U multiply, U add) |
| Rescales the problem. | |
| Document | switchMaxMin (int shiftInt) |
| Change the problem from a maximisation problem to a minimisation problem. | |
| void | reset (ProblemInterface< V, U > newProblem) |
| Resets this problem to be the same as the input one. | |
| int | getNumberOfCoordinationConstraints () |
| Returns the number of spaces that are shared between different agents. | |
| boolean | multipleTypes () |
| UtilitySolutionSpace< V, U > | addUnarySpace (String name, String var, V[] dom, U[] utils) |
| Add a unary solution space to the problem. | |
| DCOPProblemInterface< V, U > | parse () |
| Public Member Functions inherited from frodo2.algorithms.ParserInterface< V, U > | |
| ProblemInterface< V, U > | parse () |
Static Public Member Functions | |
| static Document | parse (File file) throws JDOMException, IOException |
| Creates a JDOM Document out of the input XML file in XCSP format. | |
| static Document | parse (File file, boolean checkXCSP) throws JDOMException, IOException |
| Creates a JDOM Document out of the input XML file (not necessarily in XCSP format). | |
| static Document | parse (String path) throws Exception |
| Creates a JDOM Document out of the input XML file path in XCSP format. | |
| static Document | parse (String path, boolean checkXCSP) throws Exception |
| Creates a JDOM Document out of the input XML file path (not necessarily in XCSP format). | |
| static Document | parse (InputStream stream) throws JDOMException, IOException |
| Creates a JDOM Document out of the input XML stream in XCSP format. | |
| static Document | parse (InputStream stream, boolean checkXCSP) throws JDOMException, IOException |
| Creates a JDOM Document out of the input XML stream (not necessarily in XCSP format). | |
| static String | toString (Document doc) |
| Returns a human-friendly String representation of the input JDOM Document. | |
| static String | toString (Element root) |
| Returns a human-friendly String representation of the input JDOM Element. | |
| static void | main (String[] args) throws Exception |
| Parses the input problem. | |
| static String | toDOT (Document doc) |
| Returns the constraint graph in DOT format. | |
| static String | toDOT (Element root) |
| Returns the constraint graph in DOT format. | |
| static< V extends Addable< V > Element | getRelation (UtilitySolutionSpace< V, ? extends Addable<?> > hypercube, String id, String nature) |
| Generates the XCSP "relation" or "probability" fragment corresponding to the input hypercube. | |
| static Element | getConstraint (UtilitySolutionSpace<?, ?> hypercube, String id, String ref) |
| Creates an XCSP-formated description of this contraint. | |
Protected Member Functions | |
| XCSPparser (Element root, boolean countNCCCs, boolean extendedRandNeighborhoods) | |
| Constructor from a JDOM root Element in XCSP format. | |
| XCSPparser (Element root, boolean countNCCCs, boolean extendedRandNeighborhoods, boolean publicAgents) | |
| Constructor from a JDOM root Element in XCSP format. | |
| XCSPparser (Element root, boolean countNCCCs) | |
| Constructor from a JDOM root Element in XCSP format. | |
| XCSPparser (Element root, boolean countNCCCs, boolean extendedRandNeighborhoods, HashSet< String > spacesToIgnoreNcccs, boolean mpc) | |
| Constructor from a JDOM root Element in XCSP format. | |
| XCSPparser< V, U > | newInstance (Element instance) |
| Calls the corresponding constructor. | |
| U | getInfeasibleUtil () |
| List< ? extends UtilitySolutionSpace< V, U > > | getSpaces (Set< String > vars, final boolean withAnonymVars, final boolean getProbs, Set< String > forbiddenVars, DCOPProblemInterface< V, U > problem) |
| Extracts hypercubes from the constraints in the problem. | |
| void | parseConstraint (ArrayList< UtilitySolutionSpace< V, U > > spaces, Element constraint, HashMap< String, V[]> variablesHashMap, HashMap< String, Relation< V, U > > relationInfos, Set< String > vars, final boolean getProbs, final boolean withAnonymVars, U infeasibleUtil, Set< String > forbiddenVars, DCOPProblemInterface< V, U > problem) |
| Parses a constraint. | |
| void | foundUndefinedRelations (HashSet< String > relationNames) |
| Prints out an error message. | |
| V[] | getDomain (Element domainElmt, final boolean debugLoad) |
| Parses and instantiates a domain from a domain Element. | |
| boolean | ignore (String spaceClass) |
Protected Attributes | |
| Element | root |
| JDOM Element in XCSP format. | |
| Class< U > | utilClass = (Class<U>) AddableInteger.class |
| The class to be used for utility values. | |
| V | valInstance = (V) new AddableInteger () |
| An instance of V. | |
| final boolean | extendedRandNeighborhoods |
If true, neighborhood relationships between decision variables are extended through random variables. | |
| final boolean | publicAgents |
| Whether each agent knows the identities of all agents. | |
| final boolean | mpc |
| Whether to behave in MPC mode. | |
| final boolean | countNCCCs |
| Whether to count constraint checks. | |
| HashSet< String > | spacesToIgnoreNcccs |
| a set of spaces for which ncccs should be ignored | |
Private Member Functions | |
| boolean | checkUniqueConstraintNames () |
| Checks that all constraints have unique names. | |
| HashSet< String > | getAgentNeighbors (String var) |
| Returns the neighboring agents of the input variable. | |
| HashSet< String > | getScope (String var) |
| Returns the agent scope of the variable. | |
| void | setDomain (String var, ArrayList< V > domain, Map< V, Double > weights) |
| Sets the domain of a variable. | |
Static Private Member Functions | |
| static String | usage () |
Private Attributes | |
| Class< V > | domClass = (Class<V>) AddableInteger.class |
| The class to be used for variable values. | |
| long | ncccCount |
| The NCCC count. | |
An XCSP parser that provides convenient methods to extract information from XCSP files.
| <U> | the type used for variable values |
| <V> | the type used for utility values |
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | ) |
Empty constructor.
Referenced by getSubProblem(), main(), newInstance(), reset(), toDOT(), toDOT(), and toString().
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Element | root | ) |
Constructor from a JDOM root Element in XCSP format.
| root | the JDOM root Element in XCSP format |
References checkUniqueConstraintNames(), and root.

|
protected |
Constructor from a JDOM root Element in XCSP format.
| root | the JDOM root Element in XCSP format |
| countNCCCs | Whether to count constraint checks |
| extendedRandNeighborhoods | whether we want extended random neighborhoods |
References countNCCCs, extendedRandNeighborhoods, and root.
|
protected |
Constructor from a JDOM root Element in XCSP format.
| root | the JDOM root Element in XCSP format |
| countNCCCs | Whether to count constraint checks |
| extendedRandNeighborhoods | whether we want extended random neighborhoods |
| publicAgents | Whether each agent knows the identities of all agents |
References checkUniqueConstraintNames(), countNCCCs, extendedRandNeighborhoods, publicAgents, and root.

|
protected |
Constructor from a JDOM root Element in XCSP format.
| root | the JDOM root Element in XCSP format |
| countNCCCs | Whether to count constraint checks |
References countNCCCs, and root.
|
protected |
Constructor from a JDOM root Element in XCSP format.
| root | the JDOM root Element in XCSP format |
| countNCCCs | Whether to count constraint checks |
| extendedRandNeighborhoods | whether we want extended random neighborhoods |
| spacesToIgnoreNcccs | list of spaces for which NCCCs should NOT be counted |
| mpc | Whether to behave in MPC mode |
References checkUniqueConstraintNames(), countNCCCs, extendedRandNeighborhoods, mpc, root, and spacesToIgnoreNcccs.

| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Document | doc | ) |
Constructor from a JDOM Document in XCSP format.
| doc | the JDOM Document in XCSP format |
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Document | doc, |
| Boolean | countNCCCs ) |
Constructor from a JDOM Document in XCSP format.
| doc | the JDOM Document in XCSP format |
| countNCCCs | Whether to count constraint checks |
References countNCCCs.
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Document | doc, |
| Boolean | countNCCCs, | ||
| HashSet< String > | spacesToIgnore ) |
Constructor from a JDOM Document in XCSP format.
| doc | the JDOM Document in XCSP format |
| countNCCCs | Whether to count constraint checks |
| spacesToIgnore | list of spaces for which NCCCs should NOT be counted |
References countNCCCs.
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Document | doc, |
| boolean | countNCCCs, | ||
| boolean | extendedRandNeighborhoods ) |
Constructor from a JDOM Document in XCSP format.
| doc | the JDOM Document in XCSP format |
| countNCCCs | Whether to count constraint checks |
| extendedRandNeighborhoods | whether we want extended random neighborhoods |
References countNCCCs, and extendedRandNeighborhoods.
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Document | doc, |
| boolean | countNCCCs, | ||
| boolean | extendedRandNeighborhoods, | ||
| boolean | publicAgents ) |
Constructor from a JDOM Document in XCSP format.
| doc | the JDOM Document in XCSP format |
| countNCCCs | Whether to count constraint checks |
| extendedRandNeighborhoods | whether we want extended random neighborhoods |
| publicAgents | Whether each agent knows the identities of all agents |
References countNCCCs, extendedRandNeighborhoods, and publicAgents.
| frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.XCSPparser | ( | Document | doc, |
| Element | params ) |
Constructor.
| doc | the JDOM Document in XCSP format |
| params | the parameters of the solver |
References checkUniqueConstraintNames(), domClass, setDomClass(), setUtilClass(), spacesToIgnoreNcccs, and toDOT().

| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.addSolutionSpace | ( | UtilitySolutionSpace< V, U > | space | ) |
Adds a solution space to the problem.
| space | the solution space |
true if the space was added, false if the space's name is null or is already taken References getConstraint(), getRelation(), and root.
Referenced by addUnarySpace().

| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.addSpaceToIgnore | ( | String | spaceToIgnore | ) |
Adds a space to be ignored.
| spaceToIgnore | the name of the space to be ignored |
Referenced by frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp().
| UtilitySolutionSpace< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.addUnarySpace | ( | String | name, |
| String | var, | ||
| V[] | dom, | ||
| U[] | utils ) |
Add a unary solution space to the problem.
| name | the name of the space |
| var | the unique variable in the space's scope |
| dom | the allowed variable values |
| utils | the valuation for each variable value |
References addSolutionSpace(), and getInfeasibleUtil().

| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.addVariable | ( | String | name, |
| String | owner, | ||
| String | domain ) |
Adds a new variable.
| name | variable name |
| owner | name of the variable's agent |
| domain | reference to the variable's domain |
true if the variable was added, false if a variable with the same name already exists or no domain with given name exists References getAgents(), getDomain(), and root.
Referenced by addVariable().

| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.addVariable | ( | String | name, |
| String | owner, | ||
| V[] | domain ) |
Adds a new variable.
| name | variable name |
| owner | name of the variable's agent |
| domain | variable domain |
true if the variable was added, false if a variable with the same name already exists References addVariable(), getDomain(), and root.

|
private |
Checks that all constraints have unique names.
References root.
Referenced by XCSPparser(), XCSPparser(), XCSPparser(), and XCSPparser().
|
protected |
Prints out an error message.
| relationNames | names of the undefined relations |
Reimplemented in frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >, and frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.
References root.
Referenced by getSubProblem().
| String frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgent | ( | ) |
References root.
Referenced by getAgentNeighborhoods(), getAnonymNeighborhoods(), getExtVars(), getMyVars(), getNbrIntVars(), getNeighborhoods(), getNeighborhoodSizes(), parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), and toString().
| Map< String, Collection< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgentNeighborhoods | ( | ) |
References getAgent(), and getAgentNeighborhoods().

| Map< String, Collection< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgentNeighborhoods | ( | String | agent | ) |
Gets the agent neighborhoods.
| agent | the owner agent, or null if we want all variables |
References getAgentNeighbors(), getOwner(), and getVariables().
Referenced by getAgentNeighborhoods().

|
private |
Returns the neighboring agents of the input variable.
| var | the variable |
References getOwner(), getScope(), isRandom(), and root.
Referenced by getAgentNeighborhoods().

| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAgents | ( | ) |
References root.
Referenced by addVariable(), getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSubProblem(), main(), parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), setOwner(), frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.test(), frodo2.algorithms.test.XCSPparserTest.testMaximize(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testRandomExtensionalProblem(), and toDOT().
| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAllVars | ( | ) |
References getAnonymVars(), and getVariables().
Referenced by frodo2.algorithms.test.ProblemTest.testGetDomain(), and frodo2.algorithms.test.ProblemTest.testGetDomainSize().

| Map< String, HashSet< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAnonymNeighborhoods | ( | ) |
References getAgent(), and getAnonymNeighborhoods().

| Map< String, HashSet< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAnonymNeighborhoods | ( | String | agent | ) |
Parses the problem description to construct, for each variable owned by the input agent, its list of neighbors with no specified owner.
| agent | the name of the agent |
References getNeighborhoods().
Referenced by getAnonymNeighborhoods().

| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getAnonymVars | ( | ) |
References getVariables().
Referenced by getAllVars().

| Map< String, Collection< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getBackyardNeighborhood | ( | String | var | ) |
This method only makes sense in subclasses of XCSPparser that handle backyard variables.
| var | variable |
|
static |
Creates an XCSP-formated description of this contraint.
| hypercube | the constraint |
| id | the name of the constraint |
| ref | the name of the relation |
Referenced by addSolutionSpace(), frodo2.algorithms.test.AllTests.generateProblem(), frodo2.benchmarks.maxdiscsp.MaxDisCSPProblemGenerator.generateProblem(), frodo2.algorithms.test.AllTests.generateSizedProblem(), and groundVars().
|
protected |
Parses and instantiates a domain from a domain Element.
| domainElmt | the JDOM Element representing the domain |
| debugLoad | if true, prints out some debug information |
References valInstance.
| V[] frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getDomain | ( | String | var | ) |
Extracts the domain of a given variable.
| var | the variable |
References getDomain(), and root.
Referenced by addVariable(), addVariable(), getDomain(), getSpaces(), parse(), and frodo2.algorithms.test.ProblemTest.testGetDomain().

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getDomainSize | ( | String | var | ) |
Extracts the size of the domain of the input variable.
| var | the variable |
References root.
Referenced by frodo2.algorithms.varOrdering.linear.tests.CentralLinearOrderingTest.notifyIn(), frodo2.algorithms.test.ProblemTest.testGetDomainSize(), and frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom().
| Class< V > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getDomClass | ( | ) |
References domClass.
| UtilitySolutionSpace< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getExpectedUtility | ( | Map< String, V > | assignments | ) |
Computes the expectation over the random variables of the utility for the input assignments.
| assignments | values for variables |
References frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.expectation(), getProbabilitySpaces(), and getUtility().

| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getExtVars | ( | ) |
References getAgent(), and root.

|
protected |
References getMinInfUtility(), getPlusInfUtility(), maximize(), and root.
Referenced by addUnarySpace(), getParamUtility(), getSpaces(), getUtility(), and frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getUtility().

| U frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getMinInfUtility | ( | ) |
References utilClass.
Referenced by getInfeasibleUtil(), frodo2.algorithms.localSearch.dsa.tests.TestDSA< U extends Addable< U > >.setUp(), and frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom().
| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getMyVars | ( | ) |
References getAgent(), and getVariables().
Referenced by frodo2.algorithms.test.ProblemTest.testGetNbrNeighbors().

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrIntVars | ( | ) |
References getAgent(), and getNbrVars().

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrNeighbors | ( | String | var | ) |
Extracts the number of neighbors of an input variable.
| var | the variable |
References getNbrNeighbors().
Referenced by getNbrNeighbors(), and frodo2.algorithms.test.ProblemTest.testGetNbrNeighbors().

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrNeighbors | ( | String | var, |
| final boolean | withAnonymVars ) |
Extracts the number of neighbors of an input variable.
| var | the variable |
| withAnonymVars | if false, ignores variables with no specified owner |
References getNeighborVars().

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrVars | ( | ) |
Extracts the number of variables in the problem.
References getVariables().
Referenced by getNbrIntVars(), getOwners(), frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.dpop.privacy.test.P3halves_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.testP_DPOPvsDPOP(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testRandomExtensionalProblem(), and toDOT().

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNbrVars | ( | String | owner | ) |
Computes the number of variables owned by the input agent.
| owner | name of the agent |
References root.
| long frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNCCCs | ( | ) |
| Map< String, HashSet< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborhoods | ( | ) |
Returns the neighborhood of each internal variable.
References getAgent(), and getNeighborhoods().

| Map< String, HashSet< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborhoods | ( | String | agent | ) |
Parses the problem description to construct, for each variable owned by the input agent, its list of neighbors.
| agent | the name of the agent |
References getNeighborhoods().
Referenced by getAnonymNeighborhoods(), getNeighborhoods(), getNeighborhoods(), and getNeighborhoodSizes().

| Map< String, HashSet< String > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborhoods | ( | String | agent, |
| final boolean | withAnonymVars, | ||
| final boolean | onlyAnonymVars ) |
Parses the problem description to construct, for each variable owned by the input agent, its list of neighbors.
| agent | the name of the agent |
| withAnonymVars | if false, ignores variables with no specified owner |
| onlyAnonymVars | if true, only considers variables with no specified owner (in which case this superseeds withAnonymVars) |
References getNeighborVars(), getVariables(), and isRandom().

| Map< String, Integer > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborhoodSizes | ( | ) |
Returns the number of neighboring variables of all internal variables.
References getAgent(), and getNeighborhoodSizes().

| Map< String, Integer > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborhoodSizes | ( | String | agent | ) |
Computes the number of neighboring variables of all variables owned by a given agent.
| agent | name of the agent |
References getNeighborhoods().
Referenced by getNeighborhoodSizes().

| HashSet< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborVars | ( | String | var | ) |
Extracts the collection of neighbors of a given variable.
| var | the name of the variable |
References getNeighborVars().
Referenced by getNbrNeighbors(), getNeighborhoods(), getNeighborVars(), frodo2.algorithms.varOrdering.linear.tests.CentralLinearOrderingTest.notifyIn(), frodo2.algorithms.dpop.stochastic.test.SamplingPhaseTest.setUp(), and toDOT().

| HashSet< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNeighborVars | ( | String | var, |
| final boolean | withAnonymVars ) |
Extracts the collection of neighbors of a given variable.
| var | the name of the variable |
| withAnonymVars | if false, ignores variables with no specified owner |
References isRandom(), and root.

| int frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getNumberOfCoordinationConstraints | ( | ) |
Returns the number of spaces that are shared between different agents.
References getOwners(), and getSolutionSpaces().

| String frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getOwner | ( | String | var | ) |
Returns the name of the agent owning the input variable.
| var | the name of the variable |
References root.
Referenced by getAgentNeighborhoods(), getAgentNeighbors(), getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSubProblem(), parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), parseConstraint(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parseConstraint(), frodo2.algorithms.test.ProblemTest.testGetOwner(), and toDOT().
| Map< String, String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getOwners | ( | ) |
References getNbrVars(), and root.
Referenced by getNumberOfCoordinationConstraints().

| UtilitySolutionSpace< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< 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.
| assignments | values for variables |
References frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.compose(), getInfeasibleUtil(), getSolutionSpaces(), getZeroUtility(), and frodo2.output.

| U frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getPlusInfUtility | ( | ) |
References utilClass.
Referenced by getInfeasibleUtil(), frodo2.algorithms.localSearch.dsa.tests.TestDSA< U extends Addable< U > >.setUp(), and frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom().
| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getProbabilitySpaces | ( | ) |
Extracts probability spaces from the constraints in the problem.
null if some information is missing in the problem file References getSpaces().
Referenced by frodo2.algorithms.dpop.param.ParamDPOPsolver< V extends Addable< V >, U extends Addable< U > >.getExpectedOptUtil(), getExpectedUtility(), and parse().

| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getProbabilitySpaces | ( | String | var | ) |
Extracts probability spaces involving the input variable from the constraints in the problem.
null if some information is missing in the problem file | var | the variable of interest |
References getSpaces().

|
static |
Generates the XCSP "relation" or "probability" fragment corresponding to the input hypercube.
| <V> | the type used for variable values |
| hypercube | the hypercube |
| id | id of the relation/probability |
| nature | either "relation" or "probability" |
Referenced by addSolutionSpace(), frodo2.algorithms.test.AllTests.generateProblem(), frodo2.algorithms.test.AllTests.generateSizedProblem(), groundVars(), and setDomain().
|
private |
Returns the agent scope of the variable.
| var | the variable |
References root.
Referenced by getAgentNeighbors().
| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | ) |
Returns the solution spaces in the problem.
null if some information is missing References getSpaces().
Referenced by getNumberOfCoordinationConstraints(), getParamUtility(), getSolutionSpaces(), getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getUtility(), groundVars(), parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.test(), frodo2.solutionSpaces.vehiclerouting.test.VRPtests.testBestFirstiterator(), frodo2.algorithms.test.ProblemTest.testGetSolutionSpaces(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository(), frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom(), and frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testRandomExtensionalProblem().

| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | DCOPProblemInterface< V, U > | problem, |
| final boolean | withAnonymVars ) |
Extracts solution spaces from the constraints in the problem.
| problem | the problem instance that should be notified of contraint checks |
| withAnonymVars | whether hypercubes involving variables with unknown owners should be taken into account |
null if some information is missing in the problem file References getSpaces().

| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | final boolean | withAnonymVars | ) |
Extracts solution spaces from the constraints in the problem.
null if some information is missing in the problem file | withAnonymVars | whether hypercubes involving variables with unknown owners should be taken into account |
References getSolutionSpaces().

| List<? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | Set< String > | vars, |
| boolean | withAnonymVars, | ||
| Set< String > | forbiddenVars ) |
Extracts solution spaces involving the input variables from the constraints in the problem.
null if some information is missing in the problem file | vars | the variables of interest |
| withAnonymVars | whether hypercubes involving variables with unknown owners should be taken into account |
| forbiddenVars | any space involving any of these variables will be ignored |
References getSpaces().

| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | String | var | ) |
Extracts solution spaces involving the input variable from the constraints in the problem.
null if some information is missing in the problem file | var | the variable of interest |
References getSpaces().

| List<? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | String | var, |
| boolean | withAnonymVars, | ||
| Set< String > | forbiddenVars ) |
Extracts solution spaces involving the input variable from the constraints in the problem.
null if some information is missing in the problem file | var | the variable of interest |
| withAnonymVars | whether hypercubes involving variables with unknown owners should be taken into account |
| forbiddenVars | any space involving any of these variables will be ignored |
References getSpaces().

| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | String | var, |
| final boolean | withAnonymVars ) |
Extracts solution spaces involving the input variable from the constraints in the problem.
null if some information is missing in the problem file | var | the variable of interest |
| withAnonymVars | whether hypercubes involving variables with unknown owners should be taken into account |
References getSpaces().

| List<? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSolutionSpaces | ( | String | var, |
| Set< String > | forbiddenVars ) |
Returns the solution spaces involving the input variable and none of the forbidden variables.
| var | the variable of interest |
| forbiddenVars | any space involving any of these variables will be ignored |
null if some information is missing References getSpaces().

|
protected |
Extracts hypercubes from the constraints in the problem.
null if some information is missing in the problem file | vars | if null, returns all constraints; otherwise, returns only the constraints involving at least one of the variables in vars |
| withAnonymVars | whether hypercubes involving variables with unknown owners should be taken into account |
| getProbs | if true, returns the probability spaces (ignoring withAnonymVars); else, returns the solution spaces |
| forbiddenVars | any space involving any of these variables will be ignored |
| problem | the problem instance that should be notified of constraint checks |
References getDomain(), getInfeasibleUtil(), getZeroUtility(), parseConstraint(), root, utilClass, and valInstance.
Referenced by getProbabilitySpaces(), getProbabilitySpaces(), getSolutionSpaces(), getSolutionSpaces(), getSolutionSpaces(), getSolutionSpaces(), getSolutionSpaces(), getSolutionSpaces(), and getSolutionSpaces().

| XCSPparser< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getSubProblem | ( | String | agent | ) |
Builds the subproblem description for a given agent by extracting it from the overall problem description.
| agent | the name of the agent |
null if agent owns no variable Reimplemented in frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >, and frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.
References domClass, foundUndefinedRelations(), getAgents(), getOwner(), isRandom(), newInstance(), root, setDomClass(), setUtilClass(), utilClass, and XCSPparser().
Referenced by main().

| UtilitySolutionSpace< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getUtility | ( | Map< String, V > | assignments | ) |
Computes the total utility of the input assignment to variables, ignoring variables with no specified owner.
This methods actually returns a UtilitySolutionSpace. If not all variables in the problem are assigned a value, the space will represent the utility of the assignment, conditioned on the free variables. If all variables are grounded, the method returns a scalar UtilitySolutionSpace.
| assignments | values for variables |
References getUtility().
Referenced by getExpectedUtility(), getUtility(), frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.dpop.privacy.test.P3halves_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.maxsum.tests.MaxSumTests< V extends Addable< V >, U extends Addable< U > >.test(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.testRandom(), and frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.testRandom().

| UtilitySolutionSpace< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getUtility | ( | Map< String, V > | assignments, |
| final boolean | withAnonymVars ) |
Computes the total utility of the input assignment to variables.
This methods actually returns a UtilitySolutionSpace. If not all variables in the problem are assigned a value, the space will represent the utility of the assignment, conditioned on the free variables. If all variables are grounded, the method returns a scalar UtilitySolutionSpace.
| assignments | values for variables |
| withAnonymVars | if false, ignores variable with no specified owner |
References getInfeasibleUtil(), getSolutionSpaces(), getZeroUtility(), frodo2.output, and frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice().

| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getVariables | ( | ) |
References root.
Referenced by getAgentNeighborhoods(), getAllVars(), getAnonymVars(), getMyVars(), getNbrVars(), getNeighborhoods(), parse(), frodo2.algorithms.dpop.stochastic.test.SamplingPhaseTest.setUp(), frodo2.algorithms.localSearch.dsa.tests.TestDSA< U extends Addable< U > >.setUp(), frodo2.algorithms.test.ProblemTest.setUp(), frodo2.algorithms.test.ProblemTest.testGetOwner(), frodo2.algorithms.dpop.count.test.TestCountSolutions.testRandom(), and toDOT().
| Set< String > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getVariables | ( | String | owner | ) |
Returns the set of variables owned by a given agent.
| owner | the name of the agent; if null, returns all variables with no specified owner |
References root.
| U frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.getZeroUtility | ( | ) |
References utilClass.
Referenced by getParamUtility(), getSpaces(), getUtility(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getUtility(), and frodo2.algorithms.localSearch.dsa.tests.TestDSA< U extends Addable< U > >.setUp().
| Document frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.groundVars | ( | String[] | vars, |
| V[] | values ) |
Transforms the problem into one where some variables' values have been fixed.
| vars | the variables whoses values should be fixed |
| values | the values for the variables |
References getConstraint(), getRelation(), getSolutionSpaces(), root, and frodo2.solutionSpaces.UtilitySolutionSpace< V extends Addable< V >, U extends Addable< U > >.slice().

|
protected |
| spaceClass | the space class for which we want to know whether ncccs should be ignored or not |
true when ncccs should be ignored, and false otherwise Referenced by parseConstraint().
| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.incrNCCCs | ( | long | incr | ) |
Increments the number of constraint checks.
| incr | the increment |
| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.isCountingNCCCs | ( | ) |
| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.isRandom | ( | String | var | ) |
Returns whether the input variable is defined as a random variable.
| var | the name of the variable |
true if the input variable is a random variable, false if not or if the variable is unknown References root.
Referenced by getAgentNeighbors(), getNeighborhoods(), getNeighborVars(), getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSubProblem(), parse(), and setDomain().
|
static |
Parses the input problem.
| args | the path to the XCSP file |
| Exception | if an error occurs |
References getAgents(), getSubProblem(), frodo2.outFile, parse(), root, toDOT(), usage(), and XCSPparser().

| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.maximize | ( | ) |
true if this is a maximization problem, false otherwise References maximize(), and root.
Referenced by frodo2.algorithms.dpop.count.SolutionCounter< V extends Addable< V >, U extends Addable< U > >.count(), getInfeasibleUtil(), maximize(), parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), setMaximize(), and switchMaxMin().

| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.multipleTypes | ( | ) |
true when agents can be of different types, and false otherwise
|
protected |
Calls the corresponding constructor.
| instance | the agent's subproblem |
Reimplemented in frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >, and frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.
References XCSPparser().
Referenced by getSubProblem(), frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentTest.setUp(), frodo2.algorithms.asodpop.tests.ASODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryAgentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.testRandom(), and frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.testRandom().

| DCOPProblemInterface< V, U > frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse | ( | ) |
Reimplemented in frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.
References frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.addAgent(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.addProbabilitySpace(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.addRandomVar(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.addSolutionSpace(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.addVariable(), domClass, getAgent(), getAgents(), getDomain(), getOwner(), getProbabilitySpaces(), getSolutionSpaces(), getVariables(), isRandom(), maximize(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.setAgent(), frodo2.algorithms.Problem< V extends Addable< V >, U extends Addable< U > >.setDomClass(), frodo2.algorithms.AbstractProblem< V extends Addable< V >, U extends Addable< U > >.setUtilClass(), and utilClass.

|
static |
Creates a JDOM Document out of the input XML file in XCSP format.
| file | the XML file |
| JDOMException | if a parsing error occurs while reading the file |
| IOException | if an I/O error occurs while accessing the file |
Referenced by frodo2.algorithms.AbstractSolver< P extends ProblemInterface< V, U, V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.AbstractSolver(), frodo2.gui.SimpleGUI.actionPerformed(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.checkOutput(), frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.dpop.count.SolutionCounter< V extends Addable< V >, U extends Addable< U > >.count(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.JaCoPtests(), frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.main(), frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.main(), main(), frodo2.algorithms.mpc_discsp.tests.MPC_DisWCSP4tests.MPC_DisWCSP4tests(), parse(), parse(), frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.parseProblem(), frodo2.algorithms.dpop.privacy.test.SecureRerootingTest.randomTest(), frodo2.algorithms.dpop.privacy.test.VariableObfuscationTest< V extends Addable< V > >.randomTest(), frodo2.controller.ConfigurationManager.runExperiment(), frodo2.algorithms.adopt.test.ADOPTagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.adopt.test.testADOPT.setUp(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.asodpop.tests.ASODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryAgentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.setUp(), frodo2.algorithms.dpop.restart.test.TestSDPOP< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.LowestCommonAncestorsTest.setUp(), frodo2.algorithms.dpop.stochastic.test.SamplingPhaseTest.setUp(), frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentTest.setUp(), frodo2.algorithms.localSearch.dsa.tests.DSAagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.localSearch.mgm.mgm2.tests.MGM2agentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.localSearch.mgm.tests.MGMagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.test.ProblemTest.setUp(), frodo2.algorithms.test.XCSPparserTest.setUp(), frodo2.algorithms.dpop.count.SolutionCounter< V extends Addable< V >, U extends Addable< U > >.SolutionCounter(), frodo2.controller.userIO.DistributedSolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.solve(), frodo2.gui.SimpleGUI.solveProblem(), frodo2.algorithms.adopt.test.testADOPT.test(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryTest< V extends Addable< V >, U extends Addable< U > >.test(), frodo2.algorithms.asodpop.tests.ASODPOPTest< V extends Addable< V >, U extends Addable< U > >.test(), frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.test(), frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.dpop.privacy.test.P3halves_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.maxsum.tests.MaxSumTests< V extends Addable< V >, U extends Addable< U > >.test(), frodo2.algorithms.varOrdering.dfs.tests.LocalRandVarsDFStest.test(), frodo2.solutionSpaces.vehiclerouting.test.VRPtests.test(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.testComputeDFS(), frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.testP_DPOPvsDPOP(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository(), frodo2.algorithms.adopt.test.testPreprocessing.testRandom(), frodo2.algorithms.asodpop.tests.ASODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryAgentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.dsa.tests.DSAagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.mgm.mgm2.tests.MGM2agentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.mgm.tests.MGMagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.testRandom(), and frodo2.algorithms.varOrdering.election.tests.VariableElectionTest< S extends Comparable< S > &Serializable >.testRandom().
|
static |
Creates a JDOM Document out of the input XML file (not necessarily in XCSP format).
| file | the XML file |
| checkXCSP | if true, checks that the input XCSP file is properly formatted |
| JDOMException | if a parsing error occurs while reading the file |
| IOException | if an I/O error occurs while accessing the file |
|
static |
Creates a JDOM Document out of the input XML stream in XCSP format.
| stream | the XML stream |
| JDOMException | if a parsing error occurs while reading the file |
| IOException | if an I/O error occurs while accessing the file |
|
static |
Creates a JDOM Document out of the input XML stream (not necessarily in XCSP format).
| stream | the XML stream |
| checkXCSP | if true, checks that the input XCSP file is properly formatted |
| JDOMException | if a parsing error occurs while reading the file |
| IOException | if an I/O error occurs while accessing the file |
|
static |
Creates a JDOM Document out of the input XML file path in XCSP format.
| path | the XML file path |
| Exception | if an error occurs |
References parse().

|
static |
Creates a JDOM Document out of the input XML file path (not necessarily in XCSP format).
| path | the XML file path |
| checkXCSP | if true, checks that the input XCSP file is properly formatted |
| Exception | if an error occurs |
References parse().

|
protected |
Parses a constraint.
| spaces | the list of spaces to which the constraint should be added |
| constraint | the XCSP description of the constraint |
| variablesHashMap | the domain of each variable |
| relationInfos | relations, indexed by their names |
| vars | if null, returns all constraints; otherwise, returns only the constraints involving at least one of the variables in vars |
| getProbs | if true, returns the probability spaces (ignoring withAnonymVars); else, returns the solution spaces |
| withAnonymVars | whether constraints involving variables with unknown owners should be taken into account |
| infeasibleUtil | the infeasible utility |
| forbiddenVars | any space involving any of these variables will be ignored |
| problem | the problem instance that should be notified of constraint checks |
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.Relation< V extends Addable< V >, U extends Addable< U > >.defaultUtil, getOwner(), ignore(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.Relation< V extends Addable< V >, U extends Addable< U > >.tuples, utilClass, and frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.Relation< V extends Addable< V >, U extends Addable< U > >.utilities.
Referenced by getSpaces().

| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.removeSpace | ( | String | name | ) |
Removes the space with the given name.
| name | the name of the space |
true if the space was present and had been removed References root.
| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.rescale | ( | U | multiply, |
| U | add ) |
Rescales the problem.
| multiply | multiplies all costs/utilities by multiply |
| add | after multiplying all costs/utilities by multiply (if required), adds add |
Reimplemented in frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.
References root.
| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.reset | ( | ProblemInterface< V, U > | newProblem | ) |
Resets this problem to be the same as the input one.
| newProblem | the problem |
References root, utilClass, valInstance, and XCSPparser().

|
private |
Sets the domain of a variable.
| var | the variable |
| domain | its new domain |
| weights | normalized weights for each value in the new domain (used only if the variable is random) |
References getRelation(), isRandom(), root, and toString().

| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setDomain | ( | String | var, |
| V[] | dom ) |
Sets the domain of a variable in the problem.
If the input domain has values that appear more than once, it is reduced so as to only contain each value once. If the input variable is a random variable, the input domain is treated as a set of samples, and the probability law for the random variable is re-computed so as to reflect the frequency of each value in the sample set. If the variable is unknown, it adds it to the problem, assuming it is a random variable.
| var | the name of the variable |
| dom | the domain; if empty, does nothing |
References setDomain().
Referenced by setDomain(), and setProbSpace().

| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setDomClass | ( | Class< V > | domClass | ) |
Sets the class to be used for variable values.
| domClass | the class for variable values |
References domClass.
Referenced by getSubProblem(), frodo2.algorithms.adopt.test.ADOPTagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentTest.setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.asodpop.tests.ASODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryAgentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.dsa.tests.DSAagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.mgm.mgm2.tests.MGM2agentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.mgm.tests.MGMagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.testRandom(), and XCSPparser().
| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setMaximize | ( | boolean | maximize | ) |
Sets whether utility should be maximized, or cost minimized.
| maximize | true iff this should be a maximization problem |
References maximize(), and root.

| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setNCCCs | ( | long | ncccs | ) |
Sets the NCCC count.
| ncccs | the NCCC count |
| boolean frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setOwner | ( | String | var, |
| String | owner ) |
Sets the owner agent for the input variable.
| var | the variable |
| owner | the owner |
false if the owner was not changed because the variable does not exist References getAgents(), and root.

| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setProbSpace | ( | String | var, |
| Map< V, Double > | prob ) |
Adds to the problem a probability space for the input random variable.
| var | random variable |
| prob | weighted samples |
References setDomain().

| void frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setUtilClass | ( | Class< U > | utilClass | ) |
Sets the class to be used for utility values.
| utilClass | the class for utility values |
Reimplemented in frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.
References utilClass.
Referenced by getSubProblem(), frodo2.algorithms.adopt.test.ADOPTagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.SamplingPhaseTest.setUp(), frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentChildTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningSearchTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentPruningTest.setUp(), frodo2.algorithms.duct.tests.DUCTagentTest.setUp(), frodo2.algorithms.duct.tests.NormalizeInfTest.setUp(), frodo2.algorithms.duct.tests.NormalizeTest.setUp(), frodo2.algorithms.odpop.tests.UTILpropagationTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.privacy.test.P3halves_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.test(), frodo2.algorithms.maxsum.tests.MaxSumTests< V extends Addable< V >, U extends Addable< U > >.test(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.testComputeDFS(), frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.testP_DPOPvsDPOP(), frodo2.solutionSpaces.JaCoP.tests.JaCoPtests< V extends Addable< V > >.testProblemFromRepository(), frodo2.algorithms.asodpop.tests.ASODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.asodpop.tests.ASODPOPBinaryAgentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.dsa.tests.DSAagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.mgm.mgm2.tests.MGM2agentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.localSearch.mgm.tests.MGMagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestBinaryDomains< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.odpop.tests.ODPOPagentTestFullDomain< V extends Addable< V >, U extends Addable< U > >.testRandom(), frodo2.algorithms.varOrdering.election.tests.VariableElectionTest< S extends Comparable< S > &Serializable >.testRandom(), and XCSPparser().
| Document frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.switchMaxMin | ( | int | shiftInt | ) |
Change the problem from a maximisation problem to a minimisation problem.
| shiftInt | the amount with which to shift all numbers to ensure all numbers having the same sign |
Reimplemented in frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.
References maximize(), root, and utilClass.
Referenced by frodo2.benchmarks.auctions.main.CATSToXCSP.toXCSP().

| String frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.toDOT | ( | ) |
References root, and XCSPparser().

|
static |
Returns the constraint graph in DOT format.
| doc | the XCSP instance document |
References toDOT().
Referenced by frodo2.gui.SimpleGUI.actionPerformed(), main(), toDOT(), and XCSPparser().

|
static |
Returns the constraint graph in DOT format.
| root | the XCSP instance element |
References getAgents(), getNbrVars(), getNeighborVars(), getOwner(), getVariables(), root, and XCSPparser().

| String frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.toString | ( | ) |
References getAgent(), root, and XCSPparser().

|
static |
Returns a human-friendly String representation of the input JDOM Document.
| doc | the JDOM Document |
Referenced by frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.main(), setDomain(), and frodo2.algorithms.MASparser< V extends Addable< V >, U extends Addable< U > >.toString().
|
static |
Returns a human-friendly String representation of the input JDOM Element.
| root | the JDOM Element |
References root.
|
staticprivate |
|
protected |
Whether to count constraint checks.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.JaCoPxcspParser(), frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.newInstance(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.newInstance(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), and frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.XCSPparserVRP().
|
private |
The class to be used for variable values.
Referenced by getDomClass(), getSubProblem(), parse(), setDomClass(), and XCSPparser().
|
protected |
If true, neighborhood relationships between decision variables are extended through random variables.
In other words, for a given decision variable x, its neighborhood consists of:
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), and frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.XCSPparserVRP().
|
protected |
Whether to behave in MPC mode.
In MPC mode:
Referenced by XCSPparser(), and frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.XCSPparserVRP().
|
private |
The NCCC count.
|
protected |
Whether each agent knows the identities of all agents.
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), XCSPparser(), and XCSPparser().
|
protected |
JDOM Element in XCSP format.
Referenced by addSolutionSpace(), addVariable(), addVariable(), checkUniqueConstraintNames(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.createStore(), foundUndefinedRelations(), getAgent(), getAgentNeighbors(), getAgents(), getDomain(), getDomainSize(), getExtVars(), getInfeasibleUtil(), getNbrVars(), getNeighborVars(), getOwner(), getOwners(), getScope(), getSpaces(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSpaces(), getSubProblem(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.getSubProblem(), getVariables(), getVariables(), groundVars(), isRandom(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.JaCoPxcspParser(), main(), maximize(), removeSpace(), rescale(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.rescale(), reset(), setDomain(), setMaximize(), setOwner(), switchMaxMin(), toDOT(), toDOT(), toString(), toString(), XCSPparser(), XCSPparser(), XCSPparser(), XCSPparser(), and XCSPparser().
|
protected |
a set of spaces for which ncccs should be ignored
Referenced by frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.newInstance(), XCSPparser(), XCSPparser(), and frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.XCSPparserVRP().
|
protected |
The class to be used for utility values.
Referenced by getMinInfUtility(), getPlusInfUtility(), getSpaces(), getSubProblem(), getZeroUtility(), parse(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.parse(), parseConstraint(), reset(), setUtilClass(), frodo2.benchmarks.vehiclerouting.XCSPparserVRP< U extends Addable< U > >.setUtilClass(), frodo2.solutionSpaces.JaCoP.JaCoPxcspParser< V extends Addable< V > >.setUtilClass(), and switchMaxMin().
|
protected |
An instance of V.
Referenced by getDomain(), getSpaces(), and reset().