FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.reformulation.ProblemRescaler< U extends Addable< U > > Class Template Reference

A module that rescales the problem. More...

Inheritance diagram for frodo2.algorithms.reformulation.ProblemRescaler< U extends Addable< U > >:

Public Member Functions

 ProblemRescaler (DCOPProblemInterface<?, U > problem, Element params)
 Constructor.
void setQueue (Queue queue)
Collection< MessageTypegetMsgTypes ()
void notifyIn (Message msg)
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 message telling the module to start.
static final MessageType DONE = new MessageType ("Reformulation", "ProblemRescaler", "DONE")
 The type of the message sent when this module is done rescaling the problem.

Private Attributes

Queue queue
 The agent's queue.
final DCOPProblemInterface<?, U > problem
 The agent's subproblem.
final boolean maximize
 Whether the problem should be made a maximization problem.
shift
 How much should be added to each cost/utility to make them all of the desired sign.

Detailed Description

A module that rescales the problem.

Author
Thomas Leaute
Parameters
<U>the class used for utility values

Constructor & Destructor Documentation

◆ ProblemRescaler()

Constructor.

Parameters
problemThe agent's subproblem
paramsThe parameters of the module

References problem.

Member Function Documentation

◆ getMsgTypes()

◆ notifyIn()

◆ setQueue()

Member Data Documentation

◆ DONE

final MessageType frodo2.algorithms.reformulation.ProblemRescaler< U extends Addable< U > >.DONE = new MessageType ("Reformulation", "ProblemRescaler", "DONE")
static

The type of the message sent when this module is done rescaling the problem.

Referenced by notifyIn().

◆ maximize

final boolean frodo2.algorithms.reformulation.ProblemRescaler< U extends Addable< U > >.maximize
private

Whether the problem should be made a maximization problem.

Referenced by notifyIn().

◆ problem

final DCOPProblemInterface<?, U> frodo2.algorithms.reformulation.ProblemRescaler< U extends Addable< U > >.problem
private

The agent's subproblem.

Referenced by ProblemRescaler().

◆ queue

The agent's queue.

Referenced by setQueue().

◆ shift

U frodo2.algorithms.reformulation.ProblemRescaler< U extends Addable< U > >.shift
private

How much should be added to each cost/utility to make them all of the desired sign.

◆ START_MSG_TYPE

The type of the message telling the module to start.

Referenced by getMsgTypes().


The documentation for this class was generated from the following file: