ADGEfficiency / energy-py-linear

Optimize energy assets using mixed-integer linear programming
GNU General Public License v3.0
83 stars 26 forks source link

Add Custom Objective Function Terms into `epl.Accounts` #66

Open ADGEfficiency opened 5 months ago

ADGEfficiency commented 5 months ago

@johnfeldhausen - I've started work on bringing the custom objective function terms into epl.Accounts here https://github.com/ADGEfficiency/energy-py-linear/pull/65.

The initial idea is something like:

simulation = site.optimize(verbose=4, objective={"terms": terms})
accounts = epl.get_accounts(simulation.results, terms=terms)
print(accounts.custom.cost)

Will see how it goes!

ADGEfficiency commented 4 months ago

Implemented the feature in https://github.com/ADGEfficiency/energy-py-linear/pull/65

Still needs documenting - the epl.Accounts aren't documented at all, so will set that up as well.