-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-GAMS models #119
Labels
enh
New features & functionality
Comments
Here's a modified version of Dantzig's cannery/transport problem from the Julia/JuMP optimization examples: cannery.jl.txt To check that |
This was referenced Aug 9, 2019
The branch |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scenario.solve()
ends with the following lines:ixmp/ixmp/core.py
Lines 1234 to 1238 in aa7b2fe
In order to support other, non-GAMS models, the following changes could be made:
ixmp.model_settings
, adding:ixmp.model.Model
abstract class,ixmp.model.GAMSModel
subclass.Scenario.to_gdx(…)
toGAMSModel.write_data(scenario, …)
.run_gams(…)
toGAMSModel.run(scenario, …)
.Scenario.read_sol_from_gdx(…)
toGAMSModel.read_solution(scenario, …)
.After this, users would be able to run non-GAMS models by subclassing
ixmp.Model()
and implementing the methodswrite_data()
,run()
, andread_sol_from_gdx()
.As identified here in the discussion of #108.
The text was updated successfully, but these errors were encountered: