SGSolve
|
Class that implements the JYC algorithm using Gurobi. More...
#include <sgsolver_jyc.hpp>
Public Member Functions | |
SGSolver_JYC (const SGGame &_game, int _numDirections) | |
Constructor. | |
const SGGame & | getGame () const |
Returns the current game. | |
GRBEnv & | getEnv () |
Returns the environment. | |
const vector< vector< double > > & | getLevels () const |
Returns payoff levels. | |
const vector< SGPoint > & | getDirections () const |
Return directions. | |
int | getNumDirections () const |
Return numDirections. | |
void | solve () |
Solve routine. | |
void | initialize () |
Initializes the solver. | |
double | iterate () |
Runs one iteration. | |
Private Attributes | |
const SGGame & | game |
Const reference to the game being solved. | |
GRBEnv | env |
The Gurobi environment. | |
GRBModel | model |
The Gurobi model. | |
vector< vector< double > > | levels |
Payoff levels. | |
vector< SGPoint > | directions |
List of gradients in which to bound the correspondence. | |
int | numDirections |
Number of gradients. | |
Class that implements the JYC algorithm using Gurobi.
This class implements the generalization of the algorithm of Judd, Yeltekin, and Conklin (2002) for solving stochastic games.
This file has no associated cpp file, so that libsg does not have to link to Gurobi.
Currently works on two and three player games.