Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Nov 1, 2023
1 parent 7d54dfb commit c5c7c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function create_model(graph, params, sets; verbose = false, write_lp_file = fals
)

# Constraints that define a lower bound for flows that are not transport assets
# TODO: set lower bound via JuMP API
@constraint(
model,
c_lower_bound_asset_flow[f F, rp RP, I K_F[(f, rp)]; f Ft],
Expand Down
4 changes: 2 additions & 2 deletions test/test-case-studies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
graph = create_graph(joinpath(dir, "assets-data.csv"), joinpath(dir, "flows-data.csv"))
model = create_model(graph, parameters, sets)
solution = solve_model(model)
# @test solution.objective_value ≈ 183552332.18716 atol = 1e-5
@test solution.objective_value 164432876.31472 atol = 1e-5
save_solution_to_file(
OUTPUT_FOLDER,
sets.assets_investment,
Expand All @@ -19,7 +19,7 @@ end
graph = create_graph(joinpath(dir, "assets-data.csv"), joinpath(dir, "flows-data.csv"))
model = create_model(graph, parameters, sets; write_lp_file = true)
solution = solve_model(model)
# @test solution.objective_value ≈ 269238.43825 atol = 1e-5
@test solution.objective_value 269238.43825 atol = 1e-5
save_solution_to_file(
OUTPUT_FOLDER,
sets.assets_investment,
Expand Down

0 comments on commit c5c7c2b

Please sign in to comment.