|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|

Classes | |
| enum | StateValue |
| The state of the current variable: More... | |
| class | VariableInfo |
| Convenience class that contains all necessary information on a single variable. More... | |
Public Member Functions | |
| MGM2 (Element parameters, DCOPProblemInterface< V, U > problem) | |
| Constructor for the stats reporter. | |
| MGM2 (DCOPProblemInterface< V, U > problem, Element parameters) | |
| Constructor. | |
| void | getStatsFromQueue (Queue queue) |
| void | setSilent (boolean silent) |
| void | reset () |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| Collection< MessageType > | getMsgTypes () |
| HashMap< String, ArrayList< frodo2.algorithms.StatsReporterWithConvergence.CurrentAssignment< V > > > | getAssignmentHistories () |
| Map< String, V > | getCurrentSolution () |
| boolean | processOK (OK< V > msg, VariableInfo< V, U > varInfo) |
| Method to process an OK message. | |
| void | storeOffer (OFFER< V, U > msgOFFER, VariableInfo< V, U > varInfo) |
| Stores an offer made. | |
| void | processOFFER (VariableInfo< V, U > varInfo) |
| checks whether all offers have been received, and acts accordingly | |
| void | storeIMPROVE (IMPROVE< U > msg, VariableInfo< V, U > varInfo) |
| Store an IMPROVE message received. | |
| void | processIMPROVE (VariableInfo< V, U > varInfo) |
| Method used to check whether all IMPROVE messages have been received. | |
| boolean | processGO (VariableInfo< V, U > varInfo, boolean move) |
| Method used to process a GO or NOGO message. | |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Static Public Attributes | |
| static MessageType | START_MSG_TYPE = AgentInterface.START_AGENT |
| The type of the START message. | |
| static final MessageType | OFFER_MSG_TYPE = new MessageType ("MGM2", "offer") |
| The type of an OFFER message. | |
| static final MessageType | ACCEPT_MSG_TYPE = new MessageType ("MGM2", "accept") |
| The type of a ACCEPT message. | |
| static final MessageType | REJECT_MSG_TYPE = new MessageType ("MGM2", "reject") |
| The type of a REJECT message. | |
| static final MessageType | IMPROVE_MSG_TYPE = MGM.IMPROVE_MSG_TYPE |
| Type used for the IMPROVE message. | |
| static final MessageType | GO_MSG_TYPE = new MessageType ("MGM2", "go") |
| Type used for the GO message. | |
| static final MessageType | NO_GO_MSG_TYPE = new MessageType ("MGM2", "nogo") |
| Type used for the NO GO message. | |
| static final MessageType | CONV_STATS_MSG_TYPE = new MessageType ("MGM2", "ConvStats") |
| The type of the message containing the assignment history. | |
Protected Member Functions | |
| void | init () |
| Called when the first message is received, initializes all the fields and variables that are needed. | |
| void | sendOK (VariableInfo< V, U > varInfo) |
| Sending an OK message to all neighbors. | |
| void | log (String variableID, String message) |
| Log function used to print the variables state during debugging. | |
| VariableInfo< V, U > | createVariableInfo (String variableID, DCOPProblemInterface< V, U > problem, List<? extends UtilitySolutionSpace< V, U > > spaces, boolean maximize) |
| method used to create a VariableInfo object | |
Protected Attributes | |
| Queue | queue |
| The queue to which this listener is registered. | |
| final boolean | LOG = false |
When true, every variable writes log information to a log file. | |
| HashMap< String, BufferedWriter > | loggers |
| A list of buffered writers used to log information during debugging. | |
| final boolean | maximize |
true when solving a maximization problem, and false otherwise | |
| Map< String, String > | owners |
| Maps variables to the agent that owns it. | |
| HashMap< String, VariableInfo< V, U > > | infos |
| Contains, for each variable, an object containing all information needed by the algorithm. | |
| final boolean | convergence |
If true, the assignment history must be stored. | |
| HashMap< String, ArrayList< CurrentAssignment< V > > > | assignmentHistoriesMap |
| For each variable its assignment history. | |
Private Attributes | |
| int | cycles |
| The maximal number of rounds to be performed. | |
| boolean | started |
true when the START_AGENT message has been received, and false otherwise | |
| DCOPProblemInterface< V, U > | problem |
| The local problem definition. | |
| int | variables_finished |
| The number of variables that are finished. | |
| double | q |
| value between 0 and 1, used to determine whether a variable is offering or receiving | |
| boolean | terminated |
true when the agent has terminated upon initialization, and false otherwise | |
The MGM algorithm.
| <V> | type used for domain values |
| <U> | type used for utility values |
| frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.MGM2 | ( | Element | parameters, |
| DCOPProblemInterface< V, U > | problem ) |
Constructor for the stats reporter.
| parameters | parameters of the stats reporter |
| problem | the problem that is being solved |
References assignmentHistoriesMap, and problem.
| frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.MGM2 | ( | DCOPProblemInterface< V, U > | problem, |
| Element | parameters ) |
|
protected |
method used to create a VariableInfo object
| variableID | the ID of the variable |
| problem | the local problem definition |
| spaces | list of spaces owned by the agent |
| maximize | true when the problem is a maximization problem, and false otherwise |
variableID References maximize, and problem.
Referenced by init().
| HashMap< String, ArrayList< frodo2.algorithms.StatsReporterWithConvergence.CurrentAssignment< V > > > frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.getAssignmentHistories | ( | ) |
| Map< String, V > frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.getCurrentSolution | ( | ) |
Implements frodo2.algorithms.StatsReporterWithConvergence< Val extends Addable< Val > >.
| Collection< MessageType > frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References ACCEPT_MSG_TYPE, GO_MSG_TYPE, IMPROVE_MSG_TYPE, NO_GO_MSG_TYPE, OFFER_MSG_TYPE, frodo2.algorithms.localSearch.mgm.MGM< V extends Addable< V >, U extends Addable< U > >.OK_MSG_TYPE, REJECT_MSG_TYPE, START_MSG_TYPE, and frodo2.algorithms.AgentInterface< V extends Addable< V > >.STOP_AGENT.
| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue | ( | Queue | queue | ) |
Implements frodo2.algorithms.StatsReporter.
References queue.
|
protected |
Called when the first message is received, initializes all the fields and variables that are needed.
References frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, assignmentHistoriesMap, CONV_STATS_MSG_TYPE, convergence, createVariableInfo(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.currentValue, infos, LOG, loggers, maximize, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.neighbors, owners, problem, queue, frodo2.communication.Queue.sendMessageToSelf(), started, frodo2.algorithms.AgentInterface< V extends Addable< V > >.STATS_MONITOR, terminated, and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.variableID.
Referenced by notifyIn().

|
protected |
Log function used to print the variables state during debugging.
| variableID | The ID of the variable that is logging |
| message | The message that must be logged |
Referenced by processOK(), and storeOffer().
| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References CONV_STATS_MSG_TYPE, frodo2.communication.MessageType.equals(), init(), notifyIn(), OFFER_MSG_TYPE, and started.
Referenced by notifyIn(), processIMPROVE(), and processOFFER().

| boolean frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.processGO | ( | VariableInfo< V, U > | varInfo, |
| boolean | move ) |
Method used to process a GO or NOGO message.
| varInfo | the variable that received the message |
| move | true when the message is GO, false when a NOGO |
true when the message should be stored for later processing, and false otherwise References frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.StateValue.GO, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.StateValue.OK, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.okMsgsToProcess, processOK(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.reset(), sendOK(), and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.state.

| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.processIMPROVE | ( | VariableInfo< V, U > | varInfo | ) |
Method used to check whether all IMPROVE messages have been received.
| varInfo | info on the variable that is responsible for the messages |
References frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.bestOfferer, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.can_move, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.committed, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.StateValue.GO, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.goMsgToProcess, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.improveMsgReceived, notifyIn(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.number_of_neighbors, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.okMsgsToProcess, processOK(), queue, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.reset(), sendOK(), and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.terminated.

| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.processOFFER | ( | VariableInfo< V, U > | varInfo | ) |
checks whether all offers have been received, and acts accordingly
| varInfo | the variable that checks whether all offers have been received |
References frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.bestOffer, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.bestOfferer, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.committed, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.determinePossibleImprovement(), frodo2.algorithms.localSearch.mgm.mgm2.BinaryAssignment< Val extends Addable< Val > >.getOwnValue(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.StateValue.IMPROVE, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.improve, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.improveMsgsToProcess, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.neighbors, notifyIn(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.number_of_neighbors, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offeringVariables, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offersReceived, owners, queue, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.setNewValue(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.terminated, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.variableID, and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.zeroConflicts.
Referenced by processOK().

| boolean frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.processOK | ( | OK< V > | msg, |
| VariableInfo< V, U > | varInfo ) |
Method to process an OK message.
| msg | the message to be processed |
| varInfo | info on the variable that is responsible for the message |
true when the message needs to be stored for later processing, and false otherwise References frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.calculateCurrentUtility(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.calculateOffer(), frodo2.algorithms.localSearch.mgm.mgm2.OFFER< Val extends Addable< Val >, U extends Addable< U > >.getReceiver(), frodo2.algorithms.localSearch.mgm.OK< V extends Addable< V > >.getSender(), frodo2.algorithms.localSearch.mgm.OK< V extends Addable< V > >.getValue(), LOG, log(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.neighbors, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.number_of_neighbors, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.StateValue.OFFER, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offer, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offerMsgsToProcess, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.StateValue.OK, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.okMsgsReceived, owners, processOFFER(), q, queue, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.setNeighborValue(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.state, storeOffer(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.terminated, and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.variableID.
Referenced by processGO(), and processIMPROVE().

| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.reset | ( | ) |
Implements frodo2.algorithms.StatsReporter.
|
protected |
Sending an OK message to all neighbors.
| varInfo | the variable that is sending the messages |
References frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.agent_view, assignmentHistoriesMap, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.can_move, CONV_STATS_MSG_TYPE, convergence, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.currentValue, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.currentValueIndex, cycles, infos, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.neighborDomains, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.neighbors, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.newValue, owners, queue, frodo2.algorithms.AgentInterface< V extends Addable< V > >.STATS_MONITOR, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.termination_counter, and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.variableID.
Referenced by processGO(), and processIMPROVE().
| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.setQueue | ( | Queue | queue | ) |
Implements frodo2.communication.MessageListener< T >.
References queue.
| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.setSilent | ( | boolean | silent | ) |
Implements frodo2.algorithms.StatsReporter.
| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.storeIMPROVE | ( | IMPROVE< U > | msg, |
| VariableInfo< V, U > | varInfo ) |
Store an IMPROVE message received.
| msg | the message received |
| varInfo | the variable that receives the message |
References frodo2.algorithms.localSearch.mgm.IMPROVE< U extends Addable< U > >.getImprove(), frodo2.algorithms.localSearch.mgm.IMPROVE< U extends Addable< U > >.getSender(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.improve, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.improveMsgReceived, maximize, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.terminated, and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.variableID.

| void frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.storeOffer | ( | OFFER< V, U > | msgOFFER, |
| VariableInfo< V, U > | varInfo ) |
Stores an offer made.
| msgOFFER | the offer |
| varInfo | the variable that received the offer |
References frodo2.solutionSpaces.AddableConflicts< U extends Addable< U > >.add(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.calculateGain(), frodo2.algorithms.localSearch.mgm.mgm2.OFFER< Val extends Addable< Val >, U extends Addable< U > >.getAssignments(), frodo2.algorithms.localSearch.mgm.mgm2.OFFER< Val extends Addable< Val >, U extends Addable< U > >.getSender(), frodo2.algorithms.localSearch.mgm.mgm2.OFFER< Val extends Addable< Val >, U extends Addable< U > >.getUtilities(), frodo2.solutionSpaces.AddableConflicts< U extends Addable< U > >.getUtility(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.improve, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.infeasibleUtility, LOG, log(), frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offer, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offeringVariables, frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.offersReceived, owners, queue, and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.variableID.
Referenced by processOK().

|
static |
|
protected |
|
static |
The type of the message containing the assignment history.
Referenced by init(), notifyIn(), and sendOK().
|
protected |
|
private |
|
static |
Type used for the GO message.
Referenced by getMsgTypes(), and frodo2.algorithms.localSearch.mgm.mgm2.GO.GO().
|
static |
Type used for the IMPROVE message.
Referenced by getMsgTypes(), and frodo2.algorithms.localSearch.mgm.mgm2.GO.GO().
|
protected |
|
protected |
When true, every variable writes log information to a log file.
Referenced by init(), log(), processOK(), and storeOffer().
|
protected |
|
protected |
true when solving a maximization problem, and false otherwise
Referenced by createVariableInfo(), init(), and storeIMPROVE().
|
static |
Type used for the NO GO message.
Referenced by getMsgTypes(), frodo2.algorithms.localSearch.mgm.mgm2.NOGO.NOGO(), and frodo2.algorithms.localSearch.mgm.mgm2.NOGO.NOGO().
|
static |
The type of an OFFER message.
Referenced by getMsgTypes(), notifyIn(), frodo2.algorithms.localSearch.mgm.mgm2.OFFER< Val extends Addable< Val >, U extends Addable< U > >.OFFER(), frodo2.algorithms.localSearch.mgm.mgm2.OFFER< Val extends Addable< Val >, U extends Addable< U > >.OFFER(), and frodo2.algorithms.localSearch.mgm.mgm2.OFFERold< Val extends Addable< Val >, U extends Addable< U > >.OFFERold().
|
protected |
Maps variables to the agent that owns it.
Referenced by init(), processOFFER(), processOK(), sendOK(), and storeOffer().
|
private |
The local problem definition.
Referenced by createVariableInfo(), init(), MGM2(), MGM2(), and frodo2.algorithms.localSearch.mgm.mgm2.MGM2< V extends Addable< V >, U extends Addable< U > >.VariableInfo< V extends Addable< V >, U extends Addable< U > >.VariableInfo().
|
private |
value between 0 and 1, used to determine whether a variable is offering or receiving
Referenced by MGM2(), and processOK().
|
protected |
The queue to which this listener is registered.
Referenced by getStatsFromQueue(), init(), processIMPROVE(), processOFFER(), processOK(), sendOK(), setQueue(), and storeOffer().
|
static |
The type of a REJECT message.
Referenced by getMsgTypes(), frodo2.algorithms.localSearch.mgm.mgm2.REJECT.REJECT(), and frodo2.algorithms.localSearch.mgm.mgm2.REJECT.REJECT().
|
static |
The type of the START message.
Referenced by getMsgTypes().
|
private |
true when the START_AGENT message has been received, and false otherwise
Referenced by init(), and notifyIn().
|
private |
true when the agent has terminated upon initialization, and false otherwise
Referenced by init().
|
private |
The number of variables that are finished.