rl-institut / smooth

Simulation framework for non-linear state-dependant energy systems
Other
6 stars 7 forks source link

add addspec to keys in update_cost #188

Closed j-brendel closed 4 years ago

j-brendel commented 4 years ago

I added a new key to enable for addition of costs - in this case 'spec' costs - when those are being calculated.

Check the feature using this demo: example_addspec.zip

Some small in the docstring of 'update_fitted_cost.py' typos were also corrected.

An error catch (assert) statement was included, in case 'addspec' or 'cost' in 'spec' key is used in a wrong way.

j-brendel commented 4 years ago

Solved with PR #199