def reopt(basis,pool): while True: A=bm(basis) x=solve(A,[1]*n) pi=solve(A,[cols[c][1] for c in basis]) bs=[] for c in basis: bs.append(c) best=-1 br=None for c in pool: if c in bs: continue rc=cols[c][1]-dot(pi,cols[c][0]) if rc<0: if br is None or rc
0: rr=x[p]/d[p] if rat is None or rr20 or e>30 or qq>6: return if branch is not None: typ=branch[0] ba=branch[1] bb2=branch[2] if typ==0: if sink and mu!=0 and mu!=3: return else: if mu==3: return lab=[k,seq,v,t,e,qq,mu,r,modes] hit=False for L in surv: if L[1]==seq and L[2]==v and L[6]==mu: if L[3]<=t and L[4]<=e and L[5]<=qq and L[7]<=r: if L[3]