I found that I am getting an error when trying to aggregate a problem with a max_depth of 1. I believe the issue is coming because the variable nodes in this line has a length of 0. For the problem I am working on, I have an OptiGraph with subgraphs where all OptiNodes are contained on the subgraphs. Consequently, optinodes(graph) is empty since it appears that optinodes only gets the OptiNodes defined on the highest layer. Below is a minimum working example that returns the same error that I am getting.
I found that I am getting an error when trying to aggregate a problem with a
max_depth
of 1. I believe the issue is coming because the variablenodes
in this line has a length of 0. For the problem I am working on, I have an OptiGraph with subgraphs where all OptiNodes are contained on the subgraphs. Consequently,optinodes(graph)
is empty since it appears thatoptinodes
only gets the OptiNodes defined on the highest layer. Below is a minimum working example that returns the same error that I am getting.