diff --git a/miosqp/solver.py b/miosqp/solver.py index c177646..5454230 100644 --- a/miosqp/solver.py +++ b/miosqp/solver.py @@ -109,12 +109,13 @@ def solve(self): # import pdb; pdb.set_trace() # 3) Bound and Branch - work.bound_and_branch(leaf) + if not (leaf.x == None).any(): + work.bound_and_branch(leaf) - if (work.iter_num % (work.settings['print_interval']) == 0) and \ - work.settings['verbose']: - # Print progress - work.print_progress(leaf) + if (work.iter_num % (work.settings['print_interval']) == 0) and \ + work.settings['verbose']: + # Print progress + work.print_progress(leaf) # Delete leaf object del(leaf)