GamsGDX Class Reference

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

#include <GamsGDX.hpp>

Collaboration diagram for GamsGDX:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Member Functions

void reportError (int n) const

Private Attributes

GamsHandlergams
GamsDictionarydict
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:
x Primal column values.
rc Dual column values.
objval Objective value for this point (needed if model is reformulated).
filename The 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:
Generated on Tue Dec 30 03:01:28 2008 for GAMSlinks by  doxygen 1.4.7