EPEC solve
Solving Equilibrium Problems with Equilibrium Constraints (EPECs)
Public Member Functions | Data Fields
Models::EPECInstance Struct Reference

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::LeadAllParCountries = {}
 LeadAllPar vector. More...
 
arma::sp_mat TransportationCosts = {}
 Transportation costs matrix. More...
 

Detailed Description

Stores a single Instance.

Definition at line 113 of file models.h.

Constructor & Destructor Documentation

◆ EPECInstance() [1/2]

Models::EPECInstance::EPECInstance ( std::string  filename)
inline

Constructor from instance file.

Definition at line 117 of file models.h.

◆ EPECInstance() [2/2]

Models::EPECInstance::EPECInstance ( std::vector< Models::LeadAllPar Countries_,
arma::sp_mat  Transp_ 
)
inline

Constructor from instance objects.

Definition at line 120 of file models.h.

Member Function Documentation

◆ load()

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.

◆ save()

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.

Field Documentation

◆ Countries

std::vector<Models::LeadAllPar> Models::EPECInstance::Countries = {}

LeadAllPar vector.

Definition at line 114 of file models.h.

◆ TransportationCosts

arma::sp_mat Models::EPECInstance::TransportationCosts = {}

Transportation costs matrix.

Definition at line 115 of file models.h.


The documentation for this struct was generated from the following files: