37 cerr <<
"Warning BayesianGameBase called without arguments"<< endl;
51 const size_t nrAgents,
52 const vector<size_t> & nrActions,
53 const vector<size_t> & nrTypes,
55 : _m_verboseness(verb)
57 if( nrActions.size() != nrAgents || nrTypes.size() != nrAgents)
58 throw E(
"Dimension mismatches in creating a Bayesian game");
69 for(
Index i = 0; i < nrAgents; i++)
77 cout <<
"BayesianGameBase: using sparse models" << endl;
86 }
catch(std::bad_alloc)
88 cout <<
"BayesianGameBase: too many joint types ("
90 <<
") to have a full vector in memory, switching to sparse models..." << endl;
114 throw E(
"trying to copy construct a BayesianGameBase - not implemented. (is this necessary?)");
134 ss <<
"Bayesian game with "<<
_m_nrAgents<<
" agents"<<endl;
135 ss <<
"Number of actions ";
137 ss <<
" ("<<
_m_nrJA <<
" joint actions)";
138 ss <<
"\nNumber of types ";
141 ss <<
"joint type probs: ";
152 throw E(
"BGs only work with types as the policy domain");
154 ss <<
"BGType"<<typeIndex;
160 ss <<
"BGAction"<<actionI;
165 throw E(
"BayesianGameBase::PrintPolicyDomainNot (yet? deprecate?) implemented");
169 throw E(
"BayesianGameBase::PrintAction(Not (yet? deprecate?) implemented");
187 throw(
E(
"Used a JointPolicyDiscrete::PolicyGlobals::IndexDomainCategory unknown to BayesianGameBase!"));
205 throw(
E(
"BayesianGameBase::GetNrPolicyDomainElements depth argument not supported for BGs"));
219 ss <<
"Warning, total probability of joint types does not sum to 1.0, "
220 <<
"but to "<<p<<
"!";
233 cout <<
"Warning! - BayesianGameBase::SanityCheck does not sum to 1.0" << endl;
234 if( abs(psum - 1.0) > 1e-12 )
235 cout <<
"Warning - - BayesianGameBase::SanityCheck could perhaps use renormalization?"<<endl;