BCESolve
|
Class for storing a BCE. More...
#include <bcequilibrium.hpp>
Public Member Functions | |
BCEquilibrium () | |
Default constructor. | |
BCEquilibrium (const map< int, double > &data) | |
Constructor. More... | |
~BCEquilibrium () | |
Destructor. | |
BCEquilibrium & | operator= (const BCEquilibrium &rhs) |
Assignment operator. | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Serialization routine. | |
Public Attributes | |
map< int, double > | distribution |
The BCE. More... | |
double | key |
Unused key for sorting BCE. | |
Friends | |
class | boost::serialization::access |
class | BCEData |
Class for storing a BCE.
Class for storing equilibria from BCESolver. The class performs very few functions, except for serialization and copying.
|
inline |
Constructor.
Initializes the equilibrium with the given map and a key of 0.0.
map<int,double> BCEquilibrium::distribution |
The BCE.
BCE are represented as maps from linear indices to doubles. The linear index corresponding to a particular state/type/action tuple can be easily calculated using BCECounter.