Objects/Documentation
jeu28.py
Exact regret over 81 streams · jeu28.py
Download ↓"""Exact primal and dual certificates for all 81 length-four streams at delay one."""
from fractions import Fraction as F
from itertools import product
import json
from scipy.optimize import linprog
from hasard27 import schedules
from glouton23 import compare
ALPHABET=(1,2,6)
def solve(prefix):
suffixes=list(product(ALPHABET,repeat=2))
policies=[(2,)]+[(1,*a) for a in product((1,2),repeat=3)]
matrix=[];x,y=prefix
for rule in policies:
row=[]
for z,w in suffixes: