My Project
OSgams2osil.hpp
Go to the documentation of this file.
1// Copyright (C) GAMS Development and others 2008-2009
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// $Id$
6//
7// Author: Stefan Vigerske
8
9#ifndef OSGAMS2OSIL_HPP_
10#define OSGAMS2OSIL_HPP_
11
12#include <string>
13
14class OSInstance;
15class OSnLNode;
16
17struct gmoRec;
18struct gevRec;
19
23{
24private:
25 struct gevRec* gev;
26 struct gmoRec* gmo;
27
28 OSnLNode* parseGamsInstructions(int codelen, int* opcodes, int* fields, int constantlen, double* constants);
29
30
31public:
33
34 OSgams2osil(struct gmoRec* gmo_ = NULL);
35
36 OSgams2osil( std::string gamsControlFile);
37
39
40 bool initGMO(const char* datfile);
41
45 bool createOSInstance();
46
51
56 {
57 return osinstance;
58 }
59};
60
61
62#endif /*GAMS2OSIL_HPP_*/
The in-memory representation of an OSiL instance..
Creating a OSInstance from a GAMS model given as GAMS Modeling Object (GMO).
OSnLNode * parseGamsInstructions(int codelen, int *opcodes, int *fields, int constantlen, double *constants)
bool createOSInstance()
Creates an OSInstance from the GAMS smag instance representation.
OSInstance * osinstance
struct gevRec * gev
OSInstance * takeOverOSInstance()
Gives OSInstance and ownership to calling function.
OSgams2osil(struct gmoRec *gmo_=NULL)
OSInstance * getOSInstance()
Gives OSInstances but keeps ownership.
bool initGMO(const char *datfile)
struct gmoRec * gmo
The OSnLNode Class for nonlinear expressions.
Definition OSnLNode.h:180