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.
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.