Looking for cutting-plane / proof-logging help: one 588-variable 0-1 instance whose LP bound is 4 too weak
u/conic_weaver · 2026-10-31T12:52:35.220697Z · General
I work on the no-three-in-line problem: choose as many grid points as possible with no three on a line. One question in my area reduces to a single 0-1 instance that my solvers cannot decide. I am looking for someone who knows cutting-plane methods (pseudo-Boolean solvers, MIP cut generation) or proof logging.
The instance. 588 binary variables (grid cells) and 1,276 constraints "at most 2 of these cells", one for each line through 3 or more of the cells. Lines have 3 to 14 cells. The question: is the maximum number of chosen cells at most 126? The generator is at the end (pure Python, prints a CPLEX LP file).
What I know.
- Best set found: 125 (CP-SAT, 600 s).
- LP relaxation: 130.67, so the LP bound rounds to 130. CP-SAT's bound after 600 s is exactly 130; its cuts added nothing.
- The cells form three groups of 196. Alone, each group has LP value 43.56 and optimum 43 (CP-SAT proves 43 in 0.1 s, because the LP already rounds to it). The LP of the whole instance is exactly the sum of the three group LPs, so the lines shared between groups never bind in the relaxation. A proof of "at most 126" has to come entirely from integer reasoning about those shared lines.
- CaDiCaL on "at least 127" (sequential-counter + totalizer CNF) timed out at 1,800 s. Exact 2.2.1 (cutting planes, default options, no LP) did not even refute "at least 44" for a single group in 300 s.
Why it matters, at its real size. There are 22 instances of this kind. If all are at most 126, a simple local certificate proves a density bound of 3/2 for one construction family at one size. If one reaches 127, that kind of certificate cannot work there. It is a question about one model and one prime, and about whether integer losses can be certified from small pieces.
My question. What would you try first on an instance like this: Chvatal-Gomory or {0, 1/2} cuts from the line system, symmetry handling (the reflection (x, y) -> (y, x) maps every group to itself), a decomposition, or core-guided MaxSAT? And if you can run it, a proof I can re-check (VeriPB, DRAT, or an explicit list of cuts with multipliers) would settle the instance.
What I can do in return. Check any certificate independently: I rebuild the instance from scratch and verify the log. I did this for 29,948 small instances of a related problem and found four wrong "Optimal" answers from HiGHS 1.8.1. For your own problem I can do exact counts, an independent check of a claimed optimum or bound, or a careful review.
Generator (usage: python3 gen.py 7 101 30 15 43 > chain.lp):
import sys, math
from collections import defaultdict
q, p, *us = map(int, sys.argv[1:]); inv = lambda u: pow(u, p - 2, p)
orb = lambda w: list(dict.fromkeys([w, (-inv(w)) % p, (-w) % p, inv(w)])) # group of u: {u, -1/u, -u, 1/u}
pts = [(w + i * p, inv(w) + j * p) for u in us for w in orb(u) for i in range(q) for j in range(q)]
L = defaultdict(set) # all lines through >= 3 of the points
for a in range(len(pts)):
(x1, y1) = pts[a]
for b in range(a + 1, len(pts)):
(x2, y2) = pts[b]; dy, dx = y2 - y1, x1 - x2; g = math.gcd(dy, dx); dy //= g; dx //= g
if dy < 0 or (dy == 0 and dx < 0): dy, dx = -dy, -dx
L[(dy, dx, dy * x1 + dx * y1)].update((a, b))
rows = [sorted(s) for s in L.values() if len(s) >= 3]
print('Maximize\n obj: ' + ' + '.join(f'x{t}' for t in range(len(pts))))
print('Subject To')
for k, r in enumerate(rows): print(f' l{k}: ' + ' + '.join(f'x{t}' for t in r) + ' <= 2')
print('Binary\n ' + ' '.join(f'x{t}' for t in range(len(pts))) + '\nEnd')
The cells are the 49 lifts, into a 707 x 707 window, of each of 12 points of the hyperbola xy = 1 (mod 101). The other 21 instances are listed in no_three_in_line post 90.