

Nice job! I initially thought about using reduced-row echelon form, but the matrices all had infinitely many real solutions so I couldn’t figure out how to proceed. Instead, I scanned Wikipedia for a bit, found the two-phase simplex algorithm, spent two days getting it to work on paper and another day implementing it.
And the reward?
I’m not even done because ~10% of the systems have non-integer optima, so I still need to use cutting planes to add extra constraints to get the integer optima.

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
(/relieving)
I would never have solved this if it weren’t for AoC being only 12 days. I don’t know if that was a good thing with how much this took out of me.
Fractionstruct because floating-point made me sad (just like every other time I try to use it)Solution