EPEC solve
Solving Equilibrium Problems with Equilibrium Constraints (EPECs)
Data Structures | Typedefs | Enumerations | Functions
Models Namespace Reference

Data Structures

struct  DemPar
 Stores the parameters of the demand curve in a country model. More...
 
class  EPEC
 
struct  EPECInstance
 Stores a single Instance. More...
 
struct  FollPar
 Stores the parameters of the follower in a country model. More...
 
struct  LeadAllPar
 Stores the parameters of a country model. More...
 
struct  LeadPar
 Stores the parameters of the leader in a country model. More...
 

Typedefs

typedef struct FollPar FollPar
 
typedef struct DemPar DemPar
 
typedef struct LeadPar LeadPar
 
typedef struct LeadAllPar LeadAllPar
 
using LeadLocs = std::map< LeaderVars, unsigned int >
 

Enumerations

enum  TaxType { TaxType::StandardTax, TaxType::SingleTax, TaxType::CarbonTax }
 
enum  LeaderVars {
  LeaderVars::FollowerStart, LeaderVars::NetImport, LeaderVars::NetExport, LeaderVars::CountryImport,
  LeaderVars::Caps, LeaderVars::Tax, LeaderVars::TaxQuad, LeaderVars::DualVar,
  LeaderVars::ConvHullDummy, LeaderVars::End
}
 
enum  prn { prn::label, prn::val }
 

Functions

std::ostream & operator<< (std::ostream &ost, const FollPar P)
 
std::ostream & operator<< (std::ostream &ost, const DemPar P)
 
std::ostream & operator<< (std::ostream &ost, const LeadPar P)
 
std::ostream & operator<< (std::ostream &ost, const LeadAllPar P)
 
std::ostream & operator<< (std::ostream &ost, const LeaderVars l)
 
std::ostream & operator<< (std::ostream &ost, EPECInstance I)
 
void increaseVal (LeadLocs &L, const LeaderVars start, const unsigned int val, const bool startnext=true)
 
void decreaseVal (LeadLocs &L, const LeaderVars start, const unsigned int val, const bool startnext=true)
 
void init (LeadLocs &L)
 
LeaderVars operator+ (Models::LeaderVars a, int b)
 
std::ostream & operator<< (std::ostream &ost, Models::prn l)
 

Typedef Documentation

◆ DemPar

typedef struct DemPar Models::DemPar

Definition at line 17 of file models.h.

◆ FollPar

typedef struct FollPar Models::FollPar

Definition at line 16 of file models.h.

◆ LeadAllPar

Definition at line 19 of file models.h.

◆ LeadLocs

using Models::LeadLocs = typedef std::map<LeaderVars, unsigned int>

Definition at line 156 of file models.h.

◆ LeadPar

typedef struct LeadPar Models::LeadPar

Definition at line 18 of file models.h.

Enumeration Type Documentation

◆ LeaderVars

enum Models::LeaderVars
strong
Enumerator
FollowerStart 
NetImport 
NetExport 
CountryImport 
Caps 
Tax 
TaxQuad 
DualVar 
ConvHullDummy 
End 

Definition at line 131 of file models.h.

◆ prn

enum Models::prn
strong
Enumerator
label 
val 

Definition at line 305 of file models.h.

◆ TaxType

enum Models::TaxType
strong
Enumerator
StandardTax 
SingleTax 
CarbonTax 

Definition at line 21 of file models.h.

Function Documentation

◆ decreaseVal()

void Models::decreaseVal ( LeadLocs L,
const LeaderVars  start,
const unsigned int  val,
const bool  startnext = true 
)

Should be called ONLY after initializing L by calling Models::init

Definition at line 1047 of file Models.cpp.

◆ increaseVal()

void Models::increaseVal ( LeadLocs L,
const LeaderVars  start,
const unsigned int  val,
const bool  startnext = true 
)

Should be called ONLY after initializing L by calling Models::init

Definition at line 1033 of file Models.cpp.

◆ init()

void Models::init ( LeadLocs L)

Definition at line 1061 of file Models.cpp.

◆ operator+()

Models::LeaderVars Models::operator+ ( Models::LeaderVars  a,
int  b 
)

Definition at line 1068 of file Models.cpp.

◆ operator<<() [1/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
const FollPar  P 
)

◆ operator<<() [2/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
const DemPar  P 
)

◆ operator<<() [3/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
const LeadPar  P 
)

◆ operator<<() [4/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
const LeadAllPar  P 
)

◆ operator<<() [5/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
const LeaderVars  l 
)

◆ operator<<() [6/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
EPECInstance  I 
)

◆ operator<<() [7/7]

std::ostream& Models::operator<< ( std::ostream &  ost,
Models::prn  l 
)