Skip to content

Commit

Permalink
Correct annualization - Closes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
smuellr committed Oct 29, 2015
1 parent 3b193ed commit da0a71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def create_model(data, timesteps=None, dt=1):
# costs are annual by default, variable costs are scaled by weight) and
# among different simulation durations meaningful.
m.weight = pyomo.Param(
initialize=float(8760) / (len(m.t) * dt),
initialize=float(8760) / (len(m.tm) * dt),
doc='Pre-factor for variable costs and emissions for an annual result')

# dt = spacing between timesteps. Required for storage equation that
Expand Down

0 comments on commit da0a71e

Please sign in to comment.