#include <Smag2OSiL.hpp>
Public Member Functions | |
Smag2OSiL (struct smagRec *smag_) | |
Constructor. | |
~Smag2OSiL () | |
Destructor. | |
bool | createOSInstance () |
Creates an OSInstance from the GAMS smag instance representation. | |
Public Attributes | |
OSInstance * | osinstance |
osinstance is a pointer to the OSInstance object that gets created from the instance represented in SMAG format. | |
bool | keep_original_instr |
If you set this flag to true, then the instructions in SMAG are not touched by parseGamsInstructions(). | |
Private Member Functions | |
OSnLNode * | parseGamsInstructions (unsigned int *instr, int num_instr, double *constants) |
bool | setupQuadraticTerms () |
bool | setupTimeDomain () |
Private Attributes | |
smagRec * | smag |
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.
Smag2OSiL::Smag2OSiL | ( | struct smagRec * | smag_ | ) |
Constructor.
smag_ | A SMAG handler. |
Smag2OSiL::~Smag2OSiL | ( | ) |
Destructor.
bool Smag2OSiL::createOSInstance | ( | ) |
Creates an OSInstance from the GAMS smag instance representation.
OSnLNode* Smag2OSiL::parseGamsInstructions | ( | unsigned int * | instr, | |
int | num_instr, | |||
double * | constants | |||
) | [private] |
bool Smag2OSiL::setupQuadraticTerms | ( | ) | [private] |
bool Smag2OSiL::setupTimeDomain | ( | ) | [private] |
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.
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.