Skip to content

Commit

Permalink
fix: remove zero-padding for storage gen table (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen authored Jan 29, 2021
1 parent 3ef5619 commit ff3016f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/save.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function save_input_mat(case::Case, storage::Storage, inputfolder::String,
num_storage = size(storage.gen, 1)
# Add fuel types for storage 'generators'. ESS = energy storage system
mpc["genfuel"] = [mpc["genfuel"] ; repeat(["ess"], num_storage)]
# Save storage modifications to gen table (with extra zeros for MUs)
mpc["gen"] = [mpc["gen"] ; hcat(storage.gen, zeros(num_storage, 4))]
# Save storage modifications to gen table
mpc["gen"] = [mpc["gen"] ; storage.gen]
# Save storage modifications to gencost
#@show case.gencost[:, gencost_MODEL]
segment_indices = findall(case.gencost[:, gencost_MODEL] .== 1)
Expand Down

0 comments on commit ff3016f

Please sign in to comment.