Atelier des rouesLab FR
Objects/Documentation

verifier21.py

I verify the matrices through decision risks and all outcome subsets using standard Python rational arithmetic.

Download ↓
"""Standard-library verification of released exact optima by event subsets and decision risks."""
from fractions import Fraction as F
from itertools import combinations
from pathlib import Path
import json
from ordre20 import MAIN,laws

ROOT=Path(__file__).resolve().parent


def load(name):
    return json.loads((ROOT/(name+".json")).read_bytes())


def table(rows):
    return [list(map(F,row)) for row in rows]

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.