Loading...
Searching...
No Matches
gams::GAMSEquationRecord Class Reference

This class represents a single record of a GAMSEquation. More...

#include <gamsequationrecord.h>

Inheritance diagram for gams::GAMSEquationRecord:
gams::GAMSSymbolRecord

Public Member Functions

 GAMSEquationRecord ()
 
 GAMSEquationRecord (const GAMSSymbolRecord &record)
 
GAMSEquationRecordoperator= (const GAMSEquationRecord &other)
 
double level ()
 
void setLevel (const double val)
 
double marginal ()
 
void setMarginal (const double val)
 
double upper ()
 
void setUpper (const double val)
 
double lower ()
 
void setLower (const double val)
 
double scale ()
 
void setScale (const double val)
 
- Public Member Functions inherited from gams::GAMSSymbolRecord
 GAMSSymbolRecord ()
 
 GAMSSymbolRecord (const GAMSSymbolRecord &record)
 
virtual ~GAMSSymbolRecord ()
 Destructor.
 
GAMSSymbolRecordoperator= (const GAMSSymbolRecord &other)
 
bool operator!= (const GAMSSymbolRecord &other) const
 
bool operator== (const GAMSSymbolRecord &other) const
 
bool isValid () const
 
bool moveNext ()
 
bool movePrevious ()
 
std::vector< std::string > keys ()
 Retrieve keys of GAMSSymbolRecord.
 
std::string key (int index)
 
std::string operator[] (int i)
 
LogId logID ()
 
GAMSEnum::SymbolType type () const
 Get the GAMSSymbol type.
 

Detailed Description

This class represents a single record of a GAMSEquation.

Definition at line 36 of file gamsequationrecord.h.

Constructor & Destructor Documentation

◆ GAMSEquationRecord() [1/2]

gams::GAMSEquationRecord::GAMSEquationRecord ( )

The default constructor allows to create an uninitialized GAMSEquationRecord to be used later in the code. The method isValid() shows if the instance is initialized.

◆ GAMSEquationRecord() [2/2]

gams::GAMSEquationRecord::GAMSEquationRecord ( const GAMSSymbolRecord record)

Copy constructor.

Parameters
recordAnother GAMSSymbolRecord used as data source.

Member Function Documentation

◆ level()

double gams::GAMSEquationRecord::level ( )

Retrieve the the level of this GAMSEquationRecord.

Returns
Returns the level.

◆ lower()

double gams::GAMSEquationRecord::lower ( )

Retrieve the lower bound of this GAMSEquationRecord.

Returns
Returns the lower bound.

◆ marginal()

double gams::GAMSEquationRecord::marginal ( )

Retrieve the marginal of this GAMSEquationRecord.

Returns
Returns the marginal.

◆ operator=()

GAMSEquationRecord & gams::GAMSEquationRecord::operator= ( const GAMSEquationRecord other)

Assigns a GAMSEquationRecord.

Parameters
otherAnother GAMSEquationRecord used as data source.
Returns
Returns the assigned GAMSEquationRecord (*this).

◆ scale()

double gams::GAMSEquationRecord::scale ( )

Retrieve the scale factor of this GAMSEquationRecord.

Returns
Returns the scale.

◆ setLevel()

void gams::GAMSEquationRecord::setLevel ( const double  val)

Set the level of this GAMSEquationRecord.

Parameters
valLevel.

◆ setLower()

void gams::GAMSEquationRecord::setLower ( const double  val)

Set the lower bound of this GAMSEquationRecord.

Parameters
valLower bound.

◆ setMarginal()

void gams::GAMSEquationRecord::setMarginal ( const double  val)

Set the marginal of this GAMSEquationRecord.

Parameters
valMarginal.

◆ setScale()

void gams::GAMSEquationRecord::setScale ( const double  val)

Set the scale factor of this GAMSEquationRecord.

Parameters
valScale.

◆ setUpper()

void gams::GAMSEquationRecord::setUpper ( const double  val)

Set the upper bound of this GAMSEquationRecord.

Parameters
valUpper bound.

◆ upper()

double gams::GAMSEquationRecord::upper ( )

Retrieve the upper bound of this GAMSEquationRecord.

Returns
Returns the upper bound.