gap of projection of complete graphs is not so large??
This commit is contained in:
		@@ -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}")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user