WUT_Computer_Science/NotProgramming/MOM/report_two/sections/05-ograniczenia.tex
Krzysztof kuhy Rudnicki ffa5dad02a Split 19 over-cap LaTeX reports, proving each PDF is unchanged
The 250-line cap applies to prose too, and the reports were the worst
offenders -- ENUME's projectA.tex alone was 1,876 lines. Each is now a
preamble plus one \input{} per section, which is how a long LaTeX document is
normally organised; not one byte of prose was rewritten.

"The PDF is unchanged" is checked by a script rather than by eye, because
hashing the PDF cannot work: pdflatex stamps a /CreationDate and an /ID into
every build, so two runs of the SAME source already differ. tex_fingerprint.sh
compares what a reader sees instead -- page count plus a hash of the extracted
text -- and it is stable across rebuilds of untouched sources, which is the
property that makes it usable as a gate.

It earned its keep immediately. Both ECOTE reports quote an example LaTeX
document inside an lstlisting block, so \end{document} appears in the middle
of the file; splitting on the FIRST one stranded everything after it. Same
page count, different text, caught automatically. EOPSY lab3 exposed a second
bug: a \section{} title that runs onto the next line.

Result: 19 .tex over the cap -> 1. The survivor,
ELAC/.../03-building-nfa-...tex, is 418 lines of consecutive tikz figures
with no subsection to split on and needs a hand-placed boundary.

Verified: 29 splits across two passes (section, then subsection for the
pieces still over), every one reporting `unchanged` from
scripts/tex_fingerprint.sh --check.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
2026-08-28 19:47:12 +02:00

97 lines
2.8 KiB
TeX
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\section{Ograniczenia}
\subsection{Ogólne}
Przepływ musi być nieujemny oraz mniejszy przepustowości
\begin{equation}
0 \leq f_{ij} \leq u_{ij}, \qquad (i,j) \in N \\
\end{equation}
Wszystko co przypłyneło do stanu k musi stamtąd "odpłynąć"
\begin{equation}
\sum_{i \in N \backslash \{z\}} f_{ki} = \sum_{i \in N \backslash \{W\}} f_{jk}, \qquad k \in N \backslash \{z, W\}
\end{equation}
\subsection{Dostępne surowce}
Nie możemy kupić więcej surowca S1 niż jest dostępne
\begin{equation}
f_{zS1} \leq 12000
\end{equation}
Nie możemy kupić więcej surowca S2 niż jest dostępne
\begin{equation}
f_{zS2} \leq 8000
\end{equation}
\subsection{Koszt zakupu surowców}
Nie możemy kupić mniej niż 0 surowców
\begin{equation}
a_1 \geq 0
\end{equation}
\begin{equation}
a_2 \geq 0
\end{equation}
\begin{equation}
b_1 \geq 0
\end{equation}
\begin{equation}
b_2 \geq 0
\end{equation}
Ograniczamy ile ton ponad dany limit kupiliśmy
\begin{equation}
a_1 \leq f_{zS1} - 2387
\end{equation}
liczba powyżej 2056 ton
\begin{equation}
a_2 \leq f_{zS1} - 6659
\end{equation}
liczba powyżej 2056 ton
\begin{equation}
b_1 \leq f_{zS2} - 2090
\end{equation}
liczba powyżej 2056 ton
\begin{equation}
b_2 \leq f_{zS2} - 4349
\end{equation}
\subsection{Transport surowca S1 do przygotowalni}
wagon może przetransportować maks. 18 ton surowca S1
\begin{equation}
b_{P1} \geq [\frac{ f_{S1, G1} }{18}]
\end{equation}
\subsection{Transport surowca S2 do przygtowalni}
ciężarówka może przetransportować maks. 25 ton surowca S2
\begin{equation}
c_{P2} \geq [ \frac{ f_{S2, P2} }{ 25 } ]
\end{equation}
\subsection{Praca przygotowalni}
Przygotowalnia nie może mieć więcej surowców niż przepustowości
\begin{equation}
\sum_{i \in N, p \in P} f_{ip} \leq 16000
\end{equation}
ilość półproduktów w zależności od surowca
\begin{equation}
(\sum_{i \in N} f_{ip}) m_{pd} = f_{pd}, \qquad i \in N, p \in P, d \in D
\end{equation}
\subsection{Koszt pracy przygotowalni}
3 pracowników może obsługiwać maksymalnie 150 ton całkowitej ilości przerabianych surowców
\begin{equation}
l \geq [ \frac{ \sum_{i\in N, p \in P} f_{ip} }{150} ]
\end{equation}
\subsection{Transport S2 do zakładu obróbki cieplnej}
ciężarówka może przetransportować maks. 25 ton surowca S2
\begin{equation}
c_{O2} \geq [\frac{ f_{S2, O2} }{25}]
\end{equation}
\subsection{Praca zakładu obróbki cieplnej}
ilość surowca S2 w zakładzie obróbki cieplnej nie może być większa od 6000
\begin{equation}
f_{S2, O2} \leq 6000
\end{equation}
\subsection{Minimalna dostarczona ilość wyrobów}
Zgodnie z umową musimy dostarczyć przynajmniej 5000 ton wyrobów
\begin{equation}
\sum_{i \in N f_{iw}} \geq 5000, \qquad w \in W
\end{equation}
\subsection{Maksymalna liczba wagonow}
Na jedna lokomotywę, nie może przypadać więcej niż 12 wagonów
\begin{equation}
12wl \geq c_{P1}
\end{equation}