GamsHandlerIOLib.hpp

Go to the documentation of this file.
00001 // Copyright (C) 2008
00002 // All Rights Reserved.
00003 // This code is published under the Common Public License.
00004 //
00005 // $Id: GamsHandlerIOLib.hpp 510 2008-08-16 19:31:27Z stefan $
00006 //
00007 // Author: Stefan Vigerske
00008 
00009 #ifndef GAMSHANDLERIOLIB_HPP_
00010 #define GAMSHANDLERIOLIB_HPP_
00011 
00012 #include "GamsHandler.hpp"
00013 
00016 class GamsHandlerIOLib : public GamsHandler {
00017 private:
00018         bool is_reformulated;
00019         
00020 public:
00024         GamsHandlerIOLib(bool is_reformulated_) : is_reformulated(is_reformulated_) { }
00025         
00026         void print(PrintMask mask, const char* msg) const;
00027         
00028         void println(PrintMask mask, const char* msg) const;
00029         
00030         void flush(PrintMask mask=AllMask) const;
00031 
00032         void translateToGamsSpaceX(const double* x_, double objval_, double* x) const;
00033         void translateToGamsSpaceLB(const double* lb_, double* lb) const;
00034         void translateToGamsSpaceUB(const double* ub_, double* ub) const;
00035         void translateFromGamsSpaceX(const double* x_, double* x) const;
00036         bool translateFromGamsSpaceCol(const int* indices_, int* indices, int nr) const;
00037         int translateToGamsSpaceCol(int colindex) const;
00038         int translateToGamsSpaceRow(int rowindex) const;
00039 
00040         double getMInfinity() const;
00041         double getPInfinity() const;
00042         
00043         int getObjSense() const;
00044         
00045         int getColCount() const;
00046         int getColCountGams() const;
00047         int getObjVariable() const;
00048         int getObjRow() const;
00049 
00050         const char* getSystemDir() const;
00051 
00052         bool isDictionaryWritten() const;
00053         const char* dictionaryFile() const;
00054         int dictionaryVersion() const;
00055 };
00056 
00057 
00058 #endif /*GAMSHANDLERIOLIB_HPP_*/

Generated on Tue Dec 30 03:01:24 2008 for GAMSlinks by  doxygen 1.4.7