Skip to content

Commit

Permalink
Debugging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toddleif committed Feb 26, 2025
1 parent f2813e6 commit cc96baf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mpc/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ function add_variables!(m::JuMP.AbstractModel, p::MPCInputs)
dvProductionToStorage[p.s.storage.types.all, p.techs.all, p.time_steps] >= 0 # Power from technology t used to charge storage system b [kW]
dvDischargeFromStorage[p.s.storage.types.all, p.time_steps] >= 0 # Power discharged from storage system b [kW]
dvGridToStorage[p.s.storage.types.elec, p.time_steps] >= 0 # Electrical power delivered to storage by the grid [kW]
dvStorageToGrid[p.s.storage.types.elec, p.time_steps] == 0
dvStoredEnergy[p.s.storage.types.all, 0:p.time_steps[end]] >= 0 # State of charge of storage system b
dvStoragePower[p.s.storage.types.all] >= 0 # Power capacity of storage system b [kW]
dvStorageEnergy[p.s.storage.types.all] >= 0 # Energy capacity of storage system b [kWh]
Expand Down
2 changes: 2 additions & 0 deletions src/mpc/structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ Base.@kwdef struct MPCElectricStorage < AbstractElectricStorage
soc_init_fraction::Float64 = 0.5
can_grid_charge::Bool = true
grid_charge_efficiency::Float64 = 0.96 * 0.975^2
can_export_to_grid::Bool=false
end
```
"""
Expand All @@ -242,6 +243,7 @@ Base.@kwdef struct MPCElectricStorage <: AbstractElectricStorage
max_kw::Float64 = size_kw
max_kwh::Float64 = size_kwh
minimum_avg_soc_fraction::Float64 = 0.0
can_export_to_grid::Bool=false
end


Expand Down

0 comments on commit cc96baf

Please sign in to comment.