You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(solver): drop phantom dust flows; remove whole-machine mode; purge issue #s from UI
Three block-page fixes from live review:
1. A boundary flow smaller than a tiny fraction of an item's gross
in-block throughput is now dropped as numerical dust. HiGHS returns
rates with ~1e-7 relative error; on a covered item (block 20: water
made by a pump, consumed by a barreler) the net is a near-
cancellation of large equal terms — 275.0004 produced − 275 consumed
— which surfaced a phantom 0.0004 water export. A relative floor
(fraction of gross traffic) drops it without hiding real small flows.
2. Remove whole-machine mode. It only ceil()'d the displayed count while
leaving the material flows at exact demand — 'artificially ceil for
display,' as the user put it. Making buildings truly run at 100% would
create surplus that Factorio actually throttles away in steady state,
so it'd misrepresent the factory. The honest number is the fractional
requirement; the factory page still shows the whole-machine build
target in the count tooltip, and users round up themselves. Drops the
MIP path from the LP, the doc flag, the toolbar toggle, and the
sub-block wiring.
3. Sweep issue numbers out of rendered UI strings. Only one had leaked —
the 'Whole machines (#98)' toolbar tooltip — removed with the mode.
(Code comments keep their #refs; those aren't displayed.)
Refs #91
title="Whole machines (#98): every row's building count becomes an integer the solve commits to — machines may idle, rates stay exact. Off = exact fractional counts."
0 commit comments