oemof / DHNx

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

Avoid truncation error by using capacity threshold #79

Closed joroeder closed 3 years ago

joroeder commented 3 years ago

This avoids errors for the comparison with the objective value, if nonconvex investments are used with a soft optimality gap. (A weak optimality gap could lead to very small capacities although the status variable is zero.)