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

Creating a OSInstance from a GAMS model read with the SMAG I/O library. More...

#include <Smag2OSiL.hpp>

Public Member Functions

 Smag2OSiL (struct smagRec *smag_)
 Constructor. More...
 
 ~Smag2OSiL ()
 Destructor. More...
 
bool createOSInstance ()
 Creates an OSInstance from the GAMS smag instance representation. More...
 

Public Attributes

OSInstance * osinstance
 osinstance is a pointer to the OSInstance object that gets created from the instance represented in SMAG format. More...
 
bool keep_original_instr
 If you set this flag to true, then the instructions in SMAG are not touched by parseGamsInstructions(). More...
 

Private Member Functions

OSnLNode * parseGamsInstructions (unsigned int *instr, int num_instr, double *constants)
 
bool setupQuadraticTerms ()
 
bool setupTimeDomain ()
 

Private Attributes

struct smagRec * smag
 

Detailed Description

Creating a OSInstance from a GAMS model read with the SMAG I/O library.

The Smag2OSiL class is used for reading an instance in GAMS Smag format and creating an OSInstance object in OSiL format.

Definition at line 42 of file Smag2OSiL.hpp.

Constructor & Destructor Documentation

Smag2OSiL::Smag2OSiL ( struct smagRec *  smag_)

Constructor.

Parameters
smag_A SMAG handler.
Smag2OSiL::~Smag2OSiL ( )

Destructor.

Member Function Documentation

bool Smag2OSiL::createOSInstance ( )

Creates an OSInstance from the GAMS smag instance representation.

Returns
whether the instance is created successfully.
OSnLNode* Smag2OSiL::parseGamsInstructions ( unsigned int *  instr,
int  num_instr,
double *  constants 
)
private
bool Smag2OSiL::setupQuadraticTerms ( )
private
bool Smag2OSiL::setupTimeDomain ( )
private

Member Data Documentation

OSInstance* Smag2OSiL::osinstance

osinstance is a pointer to the OSInstance object that gets created from the instance represented in SMAG format.

Definition at line 61 of file Smag2OSiL.hpp.

bool Smag2OSiL::keep_original_instr

If you set this flag to true, then the instructions in SMAG are not touched by parseGamsInstructions().

Reordering is then done on a copy of the instruction list. The default is currently true, because the gradient evaluation by G2D seem to be failing on a reordered instructions list.

Definition at line 67 of file Smag2OSiL.hpp.

struct smagRec* Smag2OSiL::smag
private

Definition at line 70 of file Smag2OSiL.hpp.


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