Skip to content

Commit

Permalink
RM: unnecesarry GC.gc.
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjospina committed Aug 2, 2024
1 parent 7d83b8f commit b463d9f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/core/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ function instantiate_model_decomposition(
distro_systems_separated = _separate_pmd_circuits(pmitd_data["it"][_PMD.pmd_it_name]; multinetwork=multinetwork)
pmitd_data["it"][_PMD.pmd_it_name] = distro_systems_separated

# Force call Garbage collector to reduce RAM usage
GC.gc()

# Correct the network data and assign the respective boundary number values.
correct_network_data_decomposition!(pmitd_data; multinetwork=multinetwork)

Expand Down Expand Up @@ -332,9 +329,6 @@ function instantiate_model_decomposition(
# Set master optimizer
JuMP.set_optimizer(optimizer.master, _SDO.Optimizer; add_bridges = true)

# Force call Garbage collector to reduce RAM usage
GC.gc()

# Get the number of subproblems
number_of_subproblems = length(pmitd_data["it"][_PMD.pmd_it_name])

Expand Down Expand Up @@ -472,9 +466,6 @@ function instantiate_model_decomposition(
distro_systems_separated = _separate_pmd_circuits(pmitd_data["it"][_PMD.pmd_it_name]; multinetwork=multinetwork)
pmitd_data["it"][_PMD.pmd_it_name] = distro_systems_separated

# Force call Garbage collector to reduce RAM usage
GC.gc()

# Correct the network data and assign the respective boundary number values.
correct_network_data_decomposition!(pmitd_data; multinetwork=multinetwork)

Expand Down Expand Up @@ -503,9 +494,6 @@ function instantiate_model_decomposition(
# Set master optimizer
JuMP.set_optimizer(optimizer.master, _SDO.Optimizer; add_bridges = true)

# Force call Garbage collector to reduce RAM usage
GC.gc()

# Get the number of subproblems
number_of_subproblems = length(pmitd_data["it"][_PMD.pmd_it_name])

Expand Down

0 comments on commit b463d9f

Please sign in to comment.