From d1d95031ff4e8b690bf40b58d64c0bc336ed417f Mon Sep 17 00:00:00 2001 From: jalving Date: Mon, 9 Oct 2023 11:38:57 -0700 Subject: [PATCH] fix aggregate bug --- src/aggregate.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/aggregate.jl b/src/aggregate.jl index f72d23aa..a70cb27d 100644 --- a/src/aggregate.jl +++ b/src/aggregate.jl @@ -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 @@ -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