A library used to solve an energy hub model in Python.
A program to solve a energy hub model in Python.
- Python 3.6.1
- pip for Python 3.6.1
GLPKor another solver supported by PyLP
Running a Model
To run a energy hub model, use the
General_input.xlsx file to enter your data.
The data must be in the same format.
config.yaml file to see if the input file and output file is where
you want to load and output the results of the model respectively.
While inside the
config.yaml file, be sure to set the settings for using a
specific solver that is installed on your system.
The default one is
glpk with some options, but you can set it to any other
solver that is supported by PyLP.
Once you have configured the
config.yaml file, run:
to solve the model.
The results should be in the file you specified in
To install PyHub, make a new directory and then
cd into it.
mkdir pyhub cd pyhub
Download the repo:
git clone https://<username>@bitbucket.org/hues/pyhub.git
Install the libraries needed for PyHub to run:
pip install -r requirements.txt
Also install glpk or another solver.
config.yaml file to use a selected solver.
run.py script to see if everything works.
Can be found here.
If you are fixing a bug or making a new feature, first get the lastest master branch.
git checkout master git pull
Then create your own branch for you to work on:
git branch <your-branch-name> git checkout <your-branch-name>
Once you are done, please submit a pull request.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyehub-1.0.1-py3-none-any.whl (60.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size pyehub-1.0.1.tar.gz (46.2 kB)||File type Source||Python version None||Upload date||Hashes View hashes|