EPEC solve
Solving Equilibrium Problems with Equilibrium Constraints (EPECs)
Data Structures | Namespaces | Typedefs | Enumerations | Functions
games.h File Reference
#include "lcptolp.h"
#include <armadillo>
#include <gurobi_c++.h>
#include <iostream>
#include <memory>
#include <set>
#include <string>

Go to the source code of this file.

Data Structures

struct  Game::QP_objective
 struct to handle the objective params of MP_Param/QP_Param More...
 
struct  Game::QP_constraints
 struct to handle the constraint params of MP_Param/QP_Param More...
 
class  Game::MP_Param
 class to handle parameterized mathematical programs(MP) More...
 
class  Game::QP_Param
 Class to handle parameterized quadratic programs(QP) More...
 
class  Game::NashGame
 Class to model Nash-cournot games with each player playing a QP. More...
 
struct  Game::EPECAlgorithmParams
 Stores the configuration for EPEC algorithms. More...
 
struct  Game::EPECStatistics
 Stores statistics for a (solved) EPEC instance. More...
 
class  Game::EPEC
 Class to handle a Nash game between leaders of Stackelberg games. More...
 

Namespaces

 Game
 
 std
 

Typedefs

typedef struct Game::QP_objective Game::QP_objective
 struct to handle the objective params of MP_Param/QP_Param More...
 
typedef struct Game::QP_constraints Game::QP_constraints
 struct to handle the constraint params of MP_Param/QP_Param More...
 

Enumerations

enum  Game::EPECsolveStatus {
  Game::EPECsolveStatus::nashEqNotFound, Game::EPECsolveStatus::nashEqFound, Game::EPECsolveStatus::timeLimit, Game::EPECsolveStatus::numerical,
  Game::EPECsolveStatus::unInitialized
}
 
enum  Game::EPECalgorithm { Game::EPECalgorithm::fullEnumeration, Game::EPECalgorithm::innerApproximation, Game::EPECalgorithm::combinatorialPNE }
 
enum  Game::EPECRecoverStrategy { Game::EPECRecoverStrategy::incrementalEnumeration, Game::EPECRecoverStrategy::combinatorial }
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &ost, std::vector< T > v)
 
template<class T , class S >
std::ostream & operator<< (std::ostream &ost, std::pair< T, S > p)
 
bool Game::isZero (arma::mat M, double tol=1e-6) noexcept
 
bool Game::isZero (arma::sp_mat M, double tol=1e-6) noexcept
 
std::ostream & Game::operator<< (std::ostream &os, const QP_Param &Q)
 
std::ostream & Game::operator<< (std::ostream &ost, const perps &C)
 
void Game::print (const perps &C) noexcept
 
string std::to_string (const Game::EPECsolveStatus st)
 
string std::to_string (const Game::EPECalgorithm al)
 
string std::to_string (const Game::EPECRecoverStrategy st)
 
string std::to_string (const Game::EPECAlgorithmParams al)
 
string std::to_string (const Game::EPECAddPolyMethod add)
 

Detailed Description

For Game theory related algorithms

Definition in file games.h.

Function Documentation

◆ operator<<() [1/2]

template<class T >
std::ostream& operator<< ( std::ostream &  ost,
std::vector< T >  v 
)

Definition at line 18 of file games.h.

◆ operator<<() [2/2]

template<class T , class S >
std::ostream& operator<< ( std::ostream &  ost,
std::pair< T, S >  p 
)

Definition at line 26 of file games.h.