Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Nov 29, 2023
1 parent 3a128d4 commit 7ce23ac
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/objective/taxes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ function taxes(m::Model, t_range)
* duration(t)
* tax_net_unit_flow[(node=n, stochastic_scenario=s, analysis_time=t0, t=t)]
* prod(weight(temporal_block=blk) for blk in blocks(t))
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s) for (n,) in indices(tax_net_unit_flow)
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s)
for (n,) in indices(tax_net_unit_flow)
for (u, n, d, s, t) in unit_flow_indices(m; node=n, direction=direction(:to_node), t=t_range);
init=0,
) - expr_sum(
)
- expr_sum(
+ unit_flow[u, n, d, s, t]
* duration(t)
* tax_net_unit_flow[(node=n, stochastic_scenario=s, analysis_time=t0, t=t)]
* prod(weight(temporal_block=blk) for blk in blocks(t))
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s) for (n,) in indices(tax_net_unit_flow)
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s)
for (n,) in indices(tax_net_unit_flow)
for (u, n, d, s, t) in unit_flow_indices(m; node=n, direction=direction(:from_node), t=t_range);
init=0,
)
Expand All @@ -49,7 +52,8 @@ function taxes(m::Model, t_range)
* duration(t)
* tax_out_unit_flow[(node=n, stochastic_scenario=s, analysis_time=t0, t=t)]
* prod(weight(temporal_block=blk) for blk in blocks(t))
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s) for (n,) in indices(tax_out_unit_flow)
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s)
for (n,) in indices(tax_out_unit_flow)
for (u, n, d, s, t) in unit_flow_indices(m; node=n, direction=direction(:from_node), t=t_range);
init=0,
)
Expand All @@ -58,7 +62,8 @@ function taxes(m::Model, t_range)
* duration(t)
* tax_in_unit_flow[(node=n, stochastic_scenario=s, analysis_time=t0, t=t)]
* prod(weight(temporal_block=blk) for blk in blocks(t))
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s) for (n,) in indices(tax_in_unit_flow)
* node_stochastic_scenario_weight(m; node=n, stochastic_scenario=s)
for (n,) in indices(tax_in_unit_flow)
for (u, n, d, s, t) in unit_flow_indices(m; node=n, direction=direction(:to_node), t=t_range);
init=0,
)
Expand Down

0 comments on commit 7ce23ac

Please sign in to comment.