BCESolve
BCEquilibrium Class Reference

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.
 
BCEquilibriumoperator= (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
 

Detailed Description

Class for storing a BCE.

Class for storing equilibria from BCESolver. The class performs very few functions, except for serialization and copying.

Constructor & Destructor Documentation

◆ BCEquilibrium()

BCEquilibrium::BCEquilibrium ( const map< int, double > &  data)
inline

Constructor.

Initializes the equilibrium with the given map and a key of 0.0.

Member Data Documentation

◆ distribution

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.


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