@@ -274,6 +274,8 @@ function build_reopt!(m::JuMP.AbstractModel, p::REoptInputs)
274274 m[:ResidualGHXCapCost ] = 0.0
275275 m[:ObjectivePenalties ] = 0.0
276276
277+ print (" \n ****************** The no curtail techs are: $(p. techs. no_curtail) " )
278+
277279 if ! isempty (p. techs. all)
278280 add_tech_size_constraints (m, p)
279281
@@ -384,7 +386,6 @@ function build_reopt!(m::JuMP.AbstractModel, p::REoptInputs)
384386 add_coincident_peak_charge_constraints (m, p)
385387 end
386388
387-
388389 # Remove hydropower from the calculation:
389390 NonHydroTechs= []
390391 for hydropower_tech in p. techs. existing_hydropower
@@ -396,7 +397,6 @@ function build_reopt!(m::JuMP.AbstractModel, p::REoptInputs)
396397 m[:TotalTechCapCosts ] += p. third_party_factor *
397398 sum ( p. cap_cost_slope[t] * m[:dvPurchaseSize ][t] for t in setdiff (NonHydroTechs, p. techs. segmented))
398399 end
399-
400400 if ! isempty (p. techs. segmented)
401401 @warn " Adding binary variable(s) to model cost curves"
402402 add_cost_curve_vars_and_constraints (m, p)
@@ -407,7 +407,6 @@ function build_reopt!(m::JuMP.AbstractModel, p::REoptInputs)
407407 )
408408 end
409409 end
410-
411410 @expression (m, TotalStorageCapCosts, p. third_party_factor * (
412411 sum ( p. s. storage. attr[b]. net_present_cost_per_kw * m[:dvStoragePower ][b] for b in p. s. storage. types. elec) +
413412 sum ( p. s. storage. attr[b]. net_present_cost_per_kwh * m[:dvStorageEnergy ][b] for b in p. s. storage. types. all )
@@ -518,7 +517,7 @@ function build_reopt!(m::JuMP.AbstractModel, p::REoptInputs)
518517 add_to_expression! (Costs, m[:Lifecycle_Emissions_Cost_Health ])
519518 end
520519 if " ExistingHydropower_Turbine1" in p. techs. elec
521- print (" \n Adding hydro to the objective function" )
520+ print (" \n Adding spillway water flow to the objective function to minimize the spillway water flow " )
522521 add_to_expression! (Costs, sum (m[:dvSpillwayWaterFlow ][ts] for ts in p. time_steps)) # minimize the water that is released in the spillway
523522 end
524523 # # Modify objective with incentives that are not part of the LCC
0 commit comments