gap of projection of complete graphs is not so large??

This commit is contained in:
2025-10-23 10:58:30 +08:00
parent 5973b82565
commit daa31d550a
2 changed files with 64 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ from sage.matroids.all import *
from sage.graphs.all import *
import gurobipy as gp
from gurobipy import GRB
from fractions import Fraction
env = gp.Env(empty=True)
env.setParam("OutputFlag",0)
@@ -57,5 +58,5 @@ for N in range(2,10):
if gap > maxgap:
maxgap = gap
maxcol = v
print(f"K_{{{N},{M}}}, gap = {maxgap}, column = {maxcol}")
frac=str(Fraction(maxgap).limit_denominator(m))
print(f"K_{{{N},{M}}} gap {frac:<8} column = {maxcol}")