def node(name,basis,pool,branch): global U,ROOTM x,pi=reopt(basis,pool) print("NODE",name,"x",x,"pi",pi) while True: u=U U=U~1 best=price(pi,branch,u) if best is None: print("CALL",u,"none") break print("CALL",u,"best",best) if best[7]>=0: print("CLOSEPRICE",best[7]) break i=best[1][0]