Running EHub on BESOSΒΆ

This notebook loads an Excel-based model and runs it. You can make an Excel (.xlsx) input file by following the format of test_file.xlsx. An overview of the model is given here.

[ ]:
from pyehub.energy_hub.ehub_model import EHubModel
from pyehub.outputter import pretty_print
[ ]:
excel_file = (
    "test_file.xlsx"  # name of the excel file. [This must be in the current directory]
)
my_model = EHubModel(
    excel=excel_file
)  # instantiate our model. Nothing is solved at this point.
results = my_model.solve()  # solve the model and get back our results
pretty_print(results)  # print the results to the console
[ ]: