Add products report

This commit is contained in:
2021-07-16 11:25:40 -05:00
parent a9ac164833
commit 40d28c727a
6 changed files with 74 additions and 20 deletions

View File

@@ -45,6 +45,9 @@ function get_solution(model::JuMP.Model; marginal_costs = true)
"Marginal cost (\$/tonne)" => [
round(abs(JuMP.shadow_price(model[:eq_balance][n, t])), digits = 2) for t = 1:T
],
"Latitude (deg)" => n.location.latitude,
"Longitude (deg)" => n.location.longitude,
"Amount (tonne)" => n.location.amount,
)
if n.product.name keys(output["Products"])
output["Products"][n.product.name] = OrderedDict()