energy-py-linear icon indicating copy to clipboard operation
energy-py-linear copied to clipboard

Add Custom Objective Function Terms into `epl.Accounts`

Open ADGEfficiency opened this issue 1 year ago • 1 comments

@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 avatar Jan 20 '24 09:01 ADGEfficiency

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.

ADGEfficiency avatar Feb 18 '24 01:02 ADGEfficiency