Skip to content
Snippets Groups Projects
Commit 689aa0c4 authored by Hajar Habbou's avatar Hajar Habbou
Browse files

I added Apvp.sharedcosts in the assembly

parent d4a2f208
No related branches found
No related tags found
1 merge request!6I added Apvp.sharedcosts in the assembly
...@@ -221,6 +221,7 @@ class hpp_model: ...@@ -221,6 +221,7 @@ class hpp_model:
min_LoH = sim_pars['min_LoH'] min_LoH = sim_pars['min_LoH']
pv_deg_per_year = sim_pars['pv_deg_per_year'] pv_deg_per_year = sim_pars['pv_deg_per_year']
wpp_efficiency = sim_pars['wpp_efficiency'] wpp_efficiency = sim_pars['wpp_efficiency']
land_use_per_solar_MW = sim_pars['land_use_per_solar_MW']
# Extract weather timeseries # Extract weather timeseries
if input_ts_fn == None: if input_ts_fn == None:
...@@ -496,7 +497,9 @@ class hpp_model: ...@@ -496,7 +497,9 @@ class hpp_model:
prob.set_val('solar_WACC', sim_pars['solar_WACC']) prob.set_val('solar_WACC', sim_pars['solar_WACC'])
prob.set_val('battery_WACC', sim_pars['battery_WACC']) prob.set_val('battery_WACC', sim_pars['battery_WACC'])
prob.set_val('tax_rate', sim_pars['tax_rate']) prob.set_val('tax_rate', sim_pars['tax_rate'])
prob.set_val('land_use_per_solar_MW', sim_pars['land_use_per_solar_MW'])
self.sim_pars = sim_pars self.sim_pars = sim_pars
self.prob = prob self.prob = prob
self.num_batteries = num_batteries self.num_batteries = num_batteries
...@@ -526,6 +529,8 @@ class hpp_model: ...@@ -526,6 +529,8 @@ class hpp_model:
prob.set_val('p_rated', p_rated) prob.set_val('p_rated', p_rated)
prob.set_val('Nwt', Nwt) prob.set_val('Nwt', Nwt)
prob.set_val('Awpp', Awpp) prob.set_val('Awpp', Awpp)
Apvp = solar_MW * self.sim_pars['land_use_per_solar_MW']
prob.set_val('Apvp', Apvp)
prob.set_val('surface_tilt', surface_tilt) prob.set_val('surface_tilt', surface_tilt)
prob.set_val('surface_azimuth', surface_azimuth) prob.set_val('surface_azimuth', surface_azimuth)
......
  • Author Guest

    I added land_use_per_solar_MW to calculate the the area required for the PV 'Apvp', I added this calculation in def evaluate() Apvp = solar_MW * self.sim_pars['land_use_per_solar_MW'] prob.set_val('Apvp', Apvp)

  • Author Guest

    then Apvp is an input of the shared costs class

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment