Skip to content

Commit

Permalink
Merge pull request #88 from tso-martin/relax_integrality
Browse files Browse the repository at this point in the history
JuMP.relax_integrality for OptiGraph
  • Loading branch information
jalving authored Aug 28, 2023
2 parents 37f80fe + 4ad5211 commit 6a371f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/optimizer_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@ function JuMP.optimize!(node::OptiNode; kwargs...)
return nothing
end

function JuMP.relax_integrality(graph::OptiGraph)
for node in all_nodes(graph)
JuMP.relax_integrality(jump_model(node))
end
end

function set_node_primals(
node::OptiNode, vars::Vector{JuMP.VariableRef}, values::Vector{Float64}
)
Expand Down

0 comments on commit 6a371f5

Please sign in to comment.