File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
###############################################################################
9
9
10
10
import mpisppy .phbase
11
- import shutil
12
11
import mpisppy .MPI as mpi
13
12
14
13
from pyomo .common .collections import ComponentSet
15
14
15
+ _global_rank = mpi .COMM_WORLD .Get_rank ()
16
+
16
17
class Subgradient (mpisppy .phbase .PHBase ):
17
18
""" Subgradient Algorithm """
18
19
@@ -46,11 +47,11 @@ def subgradient_main(self, finalize=True):
46
47
self .PH_Prep (attach_prox = False , attach_smooth = smoothed )
47
48
48
49
if (verbose ):
49
- print ('Calling Subgradient Iter0 on global rank {}' .format (global_rank ))
50
+ print ('Calling Subgradient Iter0 on global rank {}' .format (_global_rank ))
50
51
trivial_bound = self .Iter0 ()
51
52
self .best_bound_obj_val = trivial_bound
52
53
if (verbose ):
53
- print ('Completed Subgradient Iter0 on global rank {}' .format (global_rank ))
54
+ print ('Completed Subgradient Iter0 on global rank {}' .format (_global_rank ))
54
55
55
56
self .iterk_loop ()
56
57
You can’t perform that action at this time.
0 commit comments