Requirements to use this translation software from ESDL to AIMMS:
- mySQL Database connection
- Python software
- Pandas, download on https://pandas.pydata.org/
- Pymsql, download on https://pypi.org/project/PyMySQL/
- Pyesdl, download on https://pypi.org/project/pyESDL/
- AIMSS software
The link includes two folders: a Python and a AIMMS folder.
Let's start with the python folder. Inside this folder create a .env
file based on the .env-template
file and
change all settings according to your local needs. The .env
file is listed in the .gitignore
file and will not
be committed to this git repository
Install all dependencies with (possibly inside a virtual environment):
pip install -r requirements.txt
Then, open In de Aimms folder the project ‘TestFileSQLRead’ and then open the Config folder.
Similar to the file created in the Python folder, create a .env
file based on this new .env-template
.
Note that there are two differences with the previous .env file:
- The
=
signs are replaced by:=
signs. - All the statements end with a
;
.
The steps to run the aimms code would be:
- Run: Uniform ESDL-AIMMS link.py
- Run: Uni_prReadInputFromSql
- Convert the ESDL parameters to model-specific parameters.
- Run: model.
- Change ESDL parameters to liking.
- Run: Uni_prWriteOutputToSql
- Run: Write_TO_ESDL.py