Skip to content

Commit

Permalink
Merge pull request #74 from StructJuMP/bl/dual_objective_value
Browse files Browse the repository at this point in the history
Use JuMP.dual_objective_value
  • Loading branch information
blegat committed Sep 3, 2019
2 parents bbb507d + cc150d6 commit a35bd52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 136 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ParameterJuMP = "774612a8-9878-5177-865a-ca53ae2495f9"

[compat]
JuMP = "0.20"
MathOptInterface = "0.9"
ParameterJuMP = "0.1"
MathOptInterface = "0.9.1"
ParameterJuMP = "0.1.2"
julia = "1"

[extras]
Expand Down
5 changes: 1 addition & 4 deletions src/Benders_pmap.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include("dual_objective_value.jl")

mutable struct Solution
feasible::Bool
objective_value::Union{Nothing, Float64}
Expand All @@ -26,8 +24,7 @@ function optimize(model::ParametrizedModel)
@warn("Using infeasibility ray of result with termination status: ALMOST_INFEASIBLE.")
end
@assert JuMP.dual_status(model.model) == MOI.INFEASIBILITY_CERTIFICATE
objective_value = dual_objective_value(JuMP.backend(model.model),
Float64)
objective_value = JuMP.dual_objective_value(model.model)
end
end
variable_value = Dict{JuMP.VariableRef, Float64}()
Expand Down
130 changes: 0 additions & 130 deletions src/dual_objective_value.jl

This file was deleted.

0 comments on commit a35bd52

Please sign in to comment.