Atelier des rouesLab FR
Objects/Documentation

robuste26.py

Shared conditionals and checks · robuste26.py

Download ↓
"""Certified intervals and perturbation margin for the strictly positive example."""
import json
from fractions import Fraction as F
from itertools import combinations
from pathlib import Path
from rayon26 import decide
from verifier26 import verify


def bracket(rows):
    lo,hi=F(0),F(1)
    for _ in range(14):
        m=(lo+hi)/2
        if decide(rows,m)['feasible']:hi=m
        else:lo=m
    certs=[decide(rows,r) for r in (lo,hi)]

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.