GAMSlinks  0.4
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GamsGDX Class Reference

Writing of GDX (Gams Data Exchange) files. More...

#include <GamsGDX.hpp>

Collaboration diagram for GamsGDX:
Collaboration graph
[legend]

Public Member Functions

 GamsGDX (GamsHandler &gams_, GamsDictionary &dict_)
 Constructor. More...
 
 ~GamsGDX ()
 Destructor. More...
 
bool init ()
 Loads and initializes the GDX dynamic library. More...
 
bool writePoint (const double *x, const double *rc, double objval, const char *filename) const
 Writes a given point to a GDX file. More...
 

Private Member Functions

void reportError (int n) const
 

Private Attributes

GamsHandlergams
 
GamsDictionarydict
 
struct gdxRec * gdx
 

Detailed Description

Writing of GDX (Gams Data Exchange) files.

Definition at line 24 of file GamsGDX.hpp.

Constructor & Destructor Documentation

GamsGDX::GamsGDX ( GamsHandler gams_,
GamsDictionary dict_ 
)

Constructor.

Parameters
gams_A GAMS handler.
dict_A GAMS dictionary.
GamsGDX::~GamsGDX ( )

Destructor.

Member Function Documentation

void GamsGDX::reportError ( int  n) const
private
bool GamsGDX::init ( )

Loads and initializes the GDX dynamic library.

Returns
True on success, False on failure.
bool GamsGDX::writePoint ( const double *  x,
const double *  rc,
double  objval,
const char *  filename 
) const

Writes a given point to a GDX file.

Assumes that the GDX library has been initialized successfully before.

Parameters
xPrimal column values.
rcDual column values.
objvalObjective value for this point (needed if model is reformulated).
filenameThe name of the GDX file to create.

Member Data Documentation

GamsHandler& GamsGDX::gams
private

Definition at line 26 of file GamsGDX.hpp.

GamsDictionary& GamsGDX::dict
private

Definition at line 27 of file GamsGDX.hpp.

struct gdxRec* GamsGDX::gdx
private

Definition at line 29 of file GamsGDX.hpp.


The documentation for this class was generated from the following file: