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

Go to the source code of this file.

Data Structures

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

Namespaces

 Models
 

Typedefs

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

Enumerations

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

Functions

std::ostream & Models::operator<< (std::ostream &ost, const FollPar P)
 
std::ostream & Models::operator<< (std::ostream &ost, const DemPar P)
 
std::ostream & Models::operator<< (std::ostream &ost, const LeadPar P)
 
std::ostream & Models::operator<< (std::ostream &ost, const LeadAllPar P)
 
std::ostream & Models::operator<< (std::ostream &ost, const LeaderVars l)
 
std::ostream & Models::operator<< (std::ostream &ost, EPECInstance I)
 
void Models::increaseVal (LeadLocs &L, const LeaderVars start, const unsigned int val, const bool startnext=true)
 
void Models::decreaseVal (LeadLocs &L, const LeaderVars start, const unsigned int val, const bool startnext=true)
 
void Models::init (LeadLocs &L)
 
LeaderVars Models::operator+ (Models::LeaderVars a, int b)
 
std::string to_string (const GRBVar &var)
 
std::string to_string (const GRBConstr &cons, const GRBModel &model)
 
std::ostream & Models::operator<< (std::ostream &ost, Models::prn l)
 
Models::FollPar operator+ (const Models::FollPar &F1, const Models::FollPar &F2)
 

Detailed Description

Using EPECSolve to solve problems arising in international energy markets with climate-conscious countries.

Definition in file models.h.

Function Documentation

◆ operator+()

Models::FollPar operator+ ( const Models::FollPar F1,
const Models::FollPar F2 
)

Definition at line 162 of file Models.cpp.

◆ to_string() [1/2]

std::string to_string ( const GRBVar &  var)

Definition at line 1091 of file Models.cpp.

◆ to_string() [2/2]

std::string to_string ( const GRBConstr &  cons,
const GRBModel &  model 
)

Definition at line 1072 of file Models.cpp.