Fix bug in _compress when plants have fixed size

Capacity was being incorrectly multiplied by T twice. This
happened because there were two references to the same struct
in the plant sizes array. This fix replaces the second reference
by an actual copy of the struct.
feature/CapEx
Alinson S. Xavier 2 years ago
parent 029a47a64b
commit f3a2d1d616
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -171,7 +171,7 @@ function parse(json)::Instance
),
)
end
length(sizes) > 1 || push!(sizes, sizes[1])
length(sizes) > 1 || push!(sizes, deepcopy(sizes[1]))
sort!(sizes, by = x -> x.capacity)
# Initial capacity

Loading…
Cancel
Save