EPEC solve
Solving Equilibrium Problems with Equilibrium Constraints (EPECs)
|
Stores a single Instance. More...
#include <models.h>
Public Member Functions | |
EPECInstance (std::string filename) | |
Constructor from instance file. More... | |
EPECInstance (std::vector< Models::LeadAllPar > Countries_, arma::sp_mat Transp_) | |
Constructor from instance objects. More... | |
void | load (std::string filename) |
Reads the EPECInstance from a file. More... | |
void | save (std::string filename) |
Writes the EPECInstance from a file. More... | |
Data Fields | |
std::vector< Models::LeadAllPar > | Countries = {} |
LeadAllPar vector. More... | |
arma::sp_mat | TransportationCosts = {} |
Transportation costs matrix. More... | |
|
inline |
|
inline |
void Models::EPECInstance::load | ( | std::string | filename | ) |
Reads the EPECInstance from a file.
Reads an instance file and return a vector of LeadAllPar
that can be fed to the EPEC class filename
dictates the name of the JSON instance file
Definition at line 1374 of file Models.cpp.
void Models::EPECInstance::save | ( | std::string | filename | ) |
Writes the EPECInstance from a file.
Writes the current EPEC instance to the standard JSON instance file filename
dictates the name of the JSON instance file epec
contains the EPECInstance
object with the data
Definition at line 1258 of file Models.cpp.
std::vector<Models::LeadAllPar> Models::EPECInstance::Countries = {} |
LeadAllPar vector.
arma::sp_mat Models::EPECInstance::TransportationCosts = {} |