ssriram1992 / EPECsolve

Code to compute mixed-equilibrium in linear EPECs
https://ssriram1992.github.io/EPECsolve/html/index.html
GNU General Public License v3.0
6 stars 2 forks source link

Number of feasible polyhedra count might be wrong #8

Closed ssriram1992 closed 4 years ago

ssriram1992 commented 4 years ago

In Game::EPEC::make_country_QP(unsigned int) definition, Stats->feasiblePolyhedra vector is expanded by 1 due to the use of std::vector<T>::push_back(T&). This might be wrong when using iterativeNash. Fix it to initialize Stats-feasiblePolyhedra to be a nCountr sized vector in finalize() and then only update the appropriate position using std::vector<T>::at(unsigned int)

gdragotto commented 4 years ago

Fixed in 4474f8b