StructJuMP / StructJuMP.jl

A block-structured optimization framework for JuMP
Other
54 stars 19 forks source link

Benders_pmap.jl broken #48

Closed ktarplee closed 4 years ago

ktarplee commented 7 years ago
using Base.Test
using Clp
include("../src/BendersBridge.jl")

@testset "farmer_benders" begin
    include("../examples/farmer.jl")
    status, objval, soln = BendersBridge(m, ClpSolver(), ClpSolver())
    @test status == :Optimal
    @test objval == -108390
    @test soln == [170, 80, 250]
end

The above code fails because there is an issue with Benders_pmap.jl. I know that the code in BendersBridge.jl is fine as evidenced by the fact that DLP provides the correct answer and using all the same code to extract the raw problem from the model. So the input to Benders_pmap() is correct to the best of my knowledge (for the farmer example anyway).

You also get a different (still wrong) answer when using ECOS instead of Clp.

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days