SGSolve
SGSolver_JYC Class Reference

Class that implements the JYC algorithm using Gurobi. More...

#include <sgsolver_jyc.hpp>

Collaboration diagram for SGSolver_JYC:

Public Member Functions

 SGSolver_JYC (const SGGame &_game, int _numDirections)
 Constructor.
 
const SGGamegetGame () 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 SGGamegame
 Const reference to the game being solved.
 
GRBEnv env
 The Gurobi environment.
 
GRBModel model
 The Gurobi model.
 
vector< vector< double > > levels
 Payoff levels.
 
vector< SGPointdirections
 List of gradients in which to bound the correspondence.
 
int numDirections
 Number of gradients.
 

Detailed Description

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.

Examples
risksharing_maxminmax.cpp.

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