Skip to content

Commit

Permalink
deleted commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingru923 committed Feb 9, 2024
1 parent d3fe881 commit 9dff74a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions core/src/allocation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -883,21 +883,6 @@ function set_objective_priority!(
add_user_term!(ex, edge_id, objective_type, d, allocation_model)
end

# # Add flow cost
# if objective_type == :linear_absolute
# cost_per_flow = 0.5 / length(F)
# for flow in F
# JuMP.add_to_expression!(ex, cost_per_flow * flow) #
# end
# elseif objective_type == :linear_relative
# if demand_max > 0.0
# cost_per_flow = 0.5 / (demand_max * length(F))
# for flow in F
# JuMP.add_to_expression!(ex, cost_per_flow * flow) #
# end
# end
# end

new_objective = JuMP.@expression(problem, ex)
JuMP.@objective(problem, Min, new_objective)
return nothing
Expand Down

0 comments on commit 9dff74a

Please sign in to comment.