Struct EPECInstance

Struct Documentation

struct Models::EPEC::EPECInstance

Stores a single Instance.

Public Functions

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.