diff --git a/src/model.jl b/src/model.jl index 8600c212..e1153f67 100644 --- a/src/model.jl +++ b/src/model.jl @@ -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], diff --git a/test/test-case-studies.jl b/test/test-case-studies.jl index 0783e871..10f57e18 100644 --- a/test/test-case-studies.jl +++ b/test/test-case-studies.jl @@ -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, @@ -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,