Skip to content

Commit

Permalink
fix aggregate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jalving committed Oct 9, 2023
1 parent 51bb4c6 commit d1d9503
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/aggregate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ function aggregate(optigraph::OptiGraph)
reference_map.linkconstraintmap[JuMP.constraint_object(linkconstraint)] = cref
end

#aggregate_node.nlp_data = aggregate_node.model.nlp_data

return aggregate_node, reference_map
end
@deprecate combine aggregate
Expand Down Expand Up @@ -247,8 +245,8 @@ function aggregate(graph::OptiGraph, max_depth::Int64) #0 means no subgraphs
append!(subs_to_check, subs)
end
depth += 1
append!(final_parents, parents)
parents = subs_to_check
append!(final_parents, parents)
end

#ADD THE BOTTOM LEVEL NODES from the corresponding subgraphs
Expand Down

0 comments on commit d1d9503

Please sign in to comment.