|
GAMSlinks
0.4
|
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 |
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.
| 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.
|
private |
|
private |
|
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.
| 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.
|
private |
Definition at line 70 of file Smag2OSiL.hpp.
1.8.5