EPEC solve
Solving Equilibrium Problems with Equilibrium Constraints (EPECs)
Functions
Utils.cpp File Reference
#include "utils.h"
#include <armadillo>
#include <boost/log/trivial.hpp>
#include <boost/program_options.hpp>
#include <fstream>

Go to the source code of this file.

Functions

void appendSave (const vector< double > v, const string out, const string header, bool erase)
 
long int appendRead (vector< double > &v, const string in, long int pos, const string header)
 

Function Documentation

◆ appendRead()

long int appendRead ( vector< double > &  v,
const string  in,
long int  pos,
const string  header 
)

Utility to read an std::vector<double> from a long file.

Returns
The end position from which the next data object can be read.

Definition at line 167 of file Utils.cpp.

◆ appendSave()

void appendSave ( const vector< double >  v,
const string  out,
const string  header,
bool  erase 
)

Utility to append an std::vector<double> to a data file.

Definition at line 155 of file Utils.cpp.