Struct EPECInstance

Struct Documentation

struct EPECInstance

Stores a single Instance.

Public Functions

inline explicit EPECInstance(std::string filename)

Constructor from instance file.

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

Constructor from instance objects.

void load(const 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.

void save(const 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.

Public Members

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

LeadAllPar vector.

arma::sp_mat TransportationCosts = {}

Transportation costs matrix.