pygdx.core

class pygdx.core.GDXFile(gdx_path: str, gams_path: Optional[str] = None)

Bases: object

Main class of the GDX file

classify_data(database)

Creates the dictionaries of sets, parameters, and variables that point to gams objects. It also creates the dataframes for these three data structures.

Args:

database (GamsDatabase): Gams database object

get_workspace() GamsWorkspace

Gets the workspace object

Returns:

GamsWorkspace: Gams workspace object

read_gdx()

Reads the GDX file. Creates the workspace, the database from a given gdx, and creates the dataframes of sets, variables and parameters.

set_gams_path(gams_path: str) None

Sets the GAMS path

Args:

gams_path (str): Raw path to the GAMS folder.

pygdx.version_check module