Adjust code to use version 0.16.0 of PyPSA for nomopyomo framework
This commit is contained in:
parent
ca15750b48
commit
9a5ae01a92
@ -40,10 +40,10 @@ projects % git clone git@github.com:nworbmot/pypsa-eur-sec.git
|
|||||||
|
|
||||||
The requirements are the same as
|
The requirements are the same as
|
||||||
[PyPSA-Eur](https://github.com/PyPSA/pypsa-eur), but for
|
[PyPSA-Eur](https://github.com/PyPSA/pypsa-eur), but for
|
||||||
`solve_network.py` in addition you need `gurobipy` and the `nomopyomo`
|
`solve_network.py` in addition you need `gurobipy` and version
|
||||||
branch of PyPSA, which are currently imported "by hand" at the start
|
>=0.16.0 of PyPSA in order to use the `nomopyomo` framework. These
|
||||||
of the `solve_network.py` script. The `nomopyomo` branch will be
|
libraries are currently imported "by hand" at the start of the
|
||||||
merged into the future PyPSA release 0.16.0.
|
`solve_network.py` script.
|
||||||
|
|
||||||
|
|
||||||
## Data requirements
|
## Data requirements
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
os.system("conda config --add channels http://conda.anaconda.org/gurobi")
|
os.system("conda install -y -c gurobi gurobi=8.1.0")
|
||||||
|
|
||||||
os.system("conda install -y gurobi=8.1.0")
|
os.system("conda install -y -c conda-forge pypsa=0.16.0")
|
||||||
|
|
||||||
os.system("conda install -y git")
|
|
||||||
|
|
||||||
os.system("pip install -U git+git://github.com/PyPSA/pypsa.git@nomopyomo#egg=pypsa")
|
|
||||||
|
|
||||||
#import sys
|
#import sys
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user