9 #ifndef GAMSHANDLERSMAG_HPP_
10 #define GAMSHANDLERSMAG_HPP_
20 #error "don't have header file for stdlib"
int translateToGamsSpaceCol(int colindex) const
Translates given column index into the original gams space.
void translateToGamsSpaceX(const double *x_, double objval_, double *x) const
Translates a given point as seem by the GamsModel or smag user into the original gams space...
double getPInfinity() const
GAMS value for plus infinity.
void translateToGamsSpaceLB(const double *lb_, double *lb) const
Translates a given lower bound as seem by the GamsModel or smag user into the original gams space...
const char * dictionaryFile() const
Gives the name of a dictionary file, if any.
void translateToGamsSpaceUB(const double *ub_, double *ub) const
Translates a given upper bound as seem by the GamsModel or smag user into the original gams space...
static int translateMask(const PrintMask &mask)
const char * getSystemDir() const
Path to GAMS system.
void println(PrintMask mask, const char *msg) const
Prints the given message plus an extra newline into the GAMS output channels (log and/or status file)...
void translateFromGamsSpaceX(const double *x_, double *x) const
Translates a given point from the original gams space into what the user sees in a GamsModel or smag...
Forwards requests for output, point transformations, dictionary files, and other things to a GAMS I/O...
Forwards requests for output and point transformations to the GAMS I/O library smag.
GamsHandlerSmag(smagRec *smag_=NULL)
Constructor.
bool isDictionaryWritten() const
Indicates whether GAMS has written a dictionary file.
double getMInfinity() const
GAMS value for minus infinity.
bool translateFromGamsSpaceCol(const int *indices_, int *indices, int nr) const
Translates given column indices from the original gams space into what the user sees in a GamsModel o...
void print(PrintMask mask, const char *msg) const
Prints the given message into the GAMS output channels (log and/or status file).
PrintMask
Distinguishing between message types.
int getColCountGams() const
The number of columns in the original gams space.
int dictionaryVersion() const
Gives the dictionary version.
void setSmag(smagRec *smag_)
Sets SMAG Handler.
void flush(PrintMask mask=AllMask) const
Flushes the buffer of a GAMS output channel.
int getObjRow() const
The index of the objective row in the original gams space.
int getObjSense() const
Objective sense: +1 for min, -1 for max.
int getObjVariable() const
The index of the objective variable in the original gams space.
int getColCount() const
The number of columns in the possibly transformed problem space.
int translateToGamsSpaceRow(int rowindex) const
Translates given row index into the original gams space.