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

An optimal solution to the problem. More...

Classes

class  TimeStamp
 Convenience class containing a timestamp and utility value. More...

Public Member Functions

 Convergence ()
 Constructor.
void processRuns (String resultPath, String resultFile, String problemName, int sampleSize, boolean maximize)
 Combines utility evolution of different runs into one median run.

Static Public Member Functions

static void main (String[] args)
 Main function, used to merge different runs.
static< V extends Addable< V > U extends Addable< U > long processAssignmentHistories (HashMap< String, ArrayList< CurrentAssignment< V > > > assignmentHistories, List< ? extends UtilitySolutionSpace< V, U > > hypercubes, String experiment_number, String resultPath, U infeasibleUtil, boolean maximize, boolean time)
static< V extends Addable< V > U extends Addable< U > U getUtility (Map< String, V > assignments, List< ? extends UtilitySolutionSpace< V, U > > hypercubes)

Detailed Description

An optimal solution to the problem.

Parameters
<V>type used for variable values
<U>type used for utility values
Author
Brammert Ottens

Constructor & Destructor Documentation

◆ Convergence()

frodo2.algorithms.Convergence< V extends Addable< V >, U extends Addable< U > >.Convergence ( )

Constructor.

Referenced by main().

Member Function Documentation

◆ getUtility()

static< V extends Addable< V > U extends Addable< U > U frodo2.algorithms.Convergence< V extends Addable< V >, U extends Addable< U > >.getUtility ( Map< String, V > assignments,
List< ? extends UtilitySolutionSpace< V, U > > hypercubes )
static

References getUtility().

Referenced by getUtility(), and processAssignmentHistories().

Here is the call graph for this function:

◆ main()

void frodo2.algorithms.Convergence< V extends Addable< V >, U extends Addable< U > >.main ( String[] args)
static

Main function, used to merge different runs.

Author
Brammert Ottens, 3 dec 2010
Parameters
argsinput arguments

References Convergence(), and processRuns().

Here is the call graph for this function:

◆ processAssignmentHistories()

static< V extends Addable< V > U extends Addable< U > long frodo2.algorithms.Convergence< V extends Addable< V >, U extends Addable< U > >.processAssignmentHistories ( HashMap< String, ArrayList< CurrentAssignment< V > > > assignmentHistories,
List< ? extends UtilitySolutionSpace< V, U > > hypercubes,
String experiment_number,
String resultPath,
U infeasibleUtil,
boolean maximize,
boolean time )
static

◆ processRuns()

void frodo2.algorithms.Convergence< V extends Addable< V >, U extends Addable< U > >.processRuns ( String resultPath,
String resultFile,
String problemName,
int sampleSize,
boolean maximize )

Combines utility evolution of different runs into one median run.

Author
Brammert Ottens, 3 dec 2010
Parameters
resultPaththe path on which the runs can be found
resultFilethe file in which the results should be written
problemNamethe name of the problem
sampleSizethe sample size to be used
maximizetrue when we should maximize, and false otherwise

Auxilirary variable, used to convert strings to addable integers

The result file

Bug
br will not be closed

References frodo2.solutionSpaces.AddableReal.divide(), frodo2.solutionSpaces.AddableReal.fromString(), frodo2.solutionSpaces.AddableReal.getMinInfinity(), and frodo2.solutionSpaces.AddableReal.getPlusInfinity().

Referenced by main().

Here is the call graph for this function:

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