25.10.2013 Views

GAMS Python API documentation version 24.1

GAMS Python API documentation version 24.1

GAMS Python API documentation version 24.1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.4 gams.database.GamsDatabaseDomainViolation Class Reference 23<br />

6 if isinstance(symbol, GamsVariable):<br />

7 print "symbol is a GamsVariable<br />

8 if isinstance(symbol, GamsEquation):<br />

9 print "symbol is a GamsEquation<br />

Parameters<br />

symbol_identifier Name of the symbol to retrieve<br />

Returns<br />

See Also<br />

Reference to symbol<br />

get_parameter(), get_set(). get_variable(), get_equation()<br />

4.3.2.17 def gams.database.GamsDatabase.get variable ( self, variable identifier )<br />

Get GamsVariable by name.<br />

Parameters<br />

Returns<br />

See Also<br />

variable_identifier<br />

Reference to variable<br />

Name of the variable to retrieve<br />

get_symbol(), get_parameter(), get_set(), get_equation()<br />

4.3.3 Property Documentation<br />

4.3.3.1 gams.database.GamsDatabase.number symbols property(get nr symbols) [static]<br />

Retrieve the number of symbols in the GamsDatabase.<br />

Note<br />

This is the same as calling len(database)<br />

4.4 gams.database.GamsDatabaseDomainViolation Class Reference<br />

This class describes a domain violation of a GamsDatabase.<br />

Inheritance diagram for gams.database.GamsDatabaseDomainViolation:<br />

<strong>GAMS</strong><strong>Python</strong><strong>API</strong> <strong>documentation</strong> <strong>version</strong> <strong>24.1</strong> May 2013<br />

object<br />

gams.database.GamsDatabaseDomainViolation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!