Skip to content

Commit

Permalink
Include history export feature in optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaoyu committed Apr 17, 2018
1 parent 97dbbdf commit 501c59f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions D3HRE/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_result_df(start_time, route, speed, solar_area, wind_area, use, battery_
wind_power = wind_power_unit * wind_area
power = solar_power + wind_power
SOC, energy_history, unmet_history, waste_history, use_history = \
simulation.soc_model_fixed_load(power, use, battery_capacity, depth_of_discharge,
soc_model_fixed_load(power, use, battery_capacity, depth_of_discharge,
discharge_rate, battery_eff, discharge_eff)

all_history = np.vstack((
Expand Down Expand Up @@ -242,7 +242,7 @@ def combined_df(self):
"""
power = self.power_df(self)
resource = self.resource_df(self)
pass
pass


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ nvector
pytest
pytest-cov
codecov
PyResis
PyResis

0 comments on commit 501c59f

Please sign in to comment.