oemof / DHNx

District heating system optimisation and simulation models
MIT License
27 stars 12 forks source link

Fix/improve results processing #80

Closed joroeder closed 3 years ago

joroeder commented 3 years ago

This PR improves the processing of the optimization results. With nonconvex investments and in large networks, there might occur status variables of 0.999999 or 0.0000001, and investment capacities of 0.01, although there is a minimum investment threshold.

As rounding status variables and thresholds for the investment capacities could be dangerous, this PR changes the post-processing so that the "raw" solver results are returned in the pipes table.

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 1075373718


Changes Missing Coverage Covered Lines Changed/Added Lines %
dhnx/optimization.py 0 4 0.0%
<!-- Total: 0 4 0.0% -->
Totals Coverage Status
Change from base Build 1075149861: -0.1%
Covered Lines: 1012
Relevant Lines: 1784

💛 - Coveralls