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


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
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: 7779 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
Regards
Soumaya

Mr. Brian Joyce

Subject: Re: Link GAMS to WEAP for hydro-economic modelling   
Posted: 5/28/2020 Viewed: 7758 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.

https://www.dropbox.com/s/9dj4l6ek5xkht99/Python%20Scripts.zip?dl=0

Kind regards,
Brian Joyce
Mr. Brian Joyce

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

https://www.dropbox.com/s/vjf7zuatnirlt63/Linking%20MYWAS%20and%20WEAP.pptx?dl=0

Eng. Soumaya Mouhli

Subject: Re: Link GAMS to WEAP for hydro-economic modelling   
Posted: 6/2/2020 Viewed: 7678 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?
Bests
Soumaya

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