Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.

About WEAP

What's New?
Sample Screens
History and Credits

Using WEAP
User Guide
Videos (YouTube)

User Forum
Members List
Edit Profile

Additional Support
University Courses

About Us
SEI-US Water Resources Program
Please Contact Us

Environmental News
'Subterranean estuaries' crucial to sustainable fishing and aquacultur...
Pioneering research suggests 'subterranean estuaries' may be critical in managing sustainable fishing and aquaculture --...

Chemicals from human activities in transplanted oysters far from popul...
Wastewater treatment facilities clean the water that goes down our sinks and flushes our toilets, but they do not remove...

Antarctic Circumpolar Current flows more rapidly in warm phases
Our planet's strongest ocean current, which circulates around Antarctica, plays a major role in determining the transpor...
Source: Science Daily
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!

User Forum

All Topics | Topic "Link GAMS to WEAP for hydro-economic modelling"
Log in to post new messages or reply to existing messages.
Author Message
Eng. Soumaya Mouhli

Subject: Link GAMS to WEAP for hydro-economic modelling   
Posted: 5/26/2020 Viewed: 1825 times
Dear weap users,
I hope everything is going well on your side.

In the model integration part on the home page, it is indicated that dynamic links to other models and software, such as QUAL2K, MODFLOW, MODPATH, PEST, Excel, and GAMS exist. When I check advanced, I do not find a link to GAMS.

I think that I should create an external link by phyton scripts programming using WEAP's script editor to link the external GAMS optimization model to WEAP.

Can someone please help me and tell me more about how to link GAMS to WEAP ? and is there any other mathematical model that can replace GAMS?

Thank you

Mr. Brian Joyce

Subject: Re: Link GAMS to WEAP for hydro-economic modelling   
Posted: 5/28/2020 Viewed: 1804 times
Dear Soumaya,

WEAP can be linked to GAMS. However, this linkage is not automated, so you will have to create scripts in order to pass data between the two models.

Here is a link to a set of python scripts that make this linkage. They were created for a specific model, so will need to be adapted to your situation. I hope that they are helpful.


Kind regards,
Brian Joyce
Mr. Brian Joyce

Subject: Re: Link GAMS to WEAP for hydro-economic modelling   
Posted: 5/28/2020 Viewed: 1790 times
This presentation may also clarify a few things about how the python scripts make the linkage between WEAP and GAMS


Eng. Soumaya Mouhli

Subject: Re: Link GAMS to WEAP for hydro-economic modelling   
Posted: 6/2/2020 Viewed: 1727 times
Dear Mr.Brain,
Thank you for answering my question.
I would like to know please if there is any free modeling system for mathematical optimization that can replace GAMS?

Topic "Link GAMS to WEAP for hydro-economic modelling"