|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Convenience class to hold variable information. More...

Public Member Functions | |
| VariableInfo (String variableID, V[] domain, String parent, List< String > children, Class< SamplingProcedure< V > > samplingClass, Class< TerminationCondition< V > > terminationClass) | |
| Constructor. | |
| boolean | setContext (String sender, String[] variables, V[] values) |
| Method used to update the context after a VALUE message has been received. | |
| AddableReal | solveLeaf () |
| Solve the local problem of a leaf, given the context. | |
| boolean | storeCOSTmsg (COSTmsg msg) |
Protected Member Functions | |
| SearchNode< V > | createNode (int domainSize, boolean maximize, boolean IGNORE_INF) |
Convenience class to hold variable information.
| frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.VariableInfo.VariableInfo | ( | String | variableID, |
| V[] | domain, | ||
| String | parent, | ||
| List< String > | children, | ||
| Class< SamplingProcedure< V > > | samplingClass, | ||
| Class< TerminationCondition< V > > | terminationClass ) |
Constructor.
| variableID | the name of the variable |
| domain | the domain of the variable |
| parent | the parent of the variable |
| children | list of the children of the variable |
| samplingClass | the class of the sampling method |
| terminationClass | the class of the termination condition |
References frodo2.algorithms.duct.Sampling< V >.samplingClass, and frodo2.algorithms.duct.Sampling< V >.terminationClass.
|
protected |
| boolean frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.VariableInfo.setContext | ( | String | sender, |
| String[] | variables, | ||
| V[] | values ) |
Method used to update the context after a VALUE message has been received.
| sender | the sender of the VALUE message |
| variables | the reported variables |
| values | the context as reported by the parent |
true when local problem has at least one feasible solution, false otherwise References createNode(), frodo2.algorithms.duct.Sampling< V >.IGNORE_INF, frodo2.algorithms.duct.Sampling< V >.infeasibleUtility, frodo2.algorithms.duct.SearchNode< V extends Addable< V > >.initSampling(), and frodo2.algorithms.duct.Sampling< V >.maximize.
Referenced by frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.notifyIn().

| AddableReal frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.VariableInfo.solveLeaf | ( | ) |
Solve the local problem of a leaf, given the context.
References frodo2.solutionSpaces.AddableReal.compareTo(), frodo2.algorithms.duct.Sampling< V >.infeasibleUtility, and frodo2.algorithms.duct.Sampling< V >.maximize.
Referenced by frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.notifyIn().

| boolean frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.VariableInfo.storeCOSTmsg | ( | COSTmsg | msg | ) |
| msg | the message to be stored |
true when enough cost messages have been received, false otherwise References frodo2.solutionSpaces.AddableReal.add(), frodo2.algorithms.duct.COSTmsg.getCost(), frodo2.algorithms.duct.Sampling< V >.infeasibleUtility, frodo2.algorithms.duct.Sampling< V >.maximize, and frodo2.algorithms.duct.Sampling< V >.penalty.
Referenced by frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.notifyIn().
