mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-11 14:07:39 +01:00
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
66 lines
2.4 KiB
TeX
66 lines
2.4 KiB
TeX
\section*{Treść zadania}
|
|
\addcontentsline{toc}{section}{Treść zadania}
|
|
Rozważmy następujące zagadnienie planowania produkcji:
|
|
|
|
\begin{itemize}
|
|
\item Przedsiębiorstwo wytwarza 4 produkty P1,...,P4 na następujących maszynach: 4 szlifierkach,
|
|
2 wiertarkach pionowych, 3 wiertarkach poziomych, 1 frezarce i 1 tokarce. Wymagane czasy produkcji
|
|
1 sztuki produktu (w godzinach) w danym procesie obróbki zostały przedstawione w poniższej tabeli:\\
|
|
\begin{center}
|
|
\begin{tabular}{l*{4}{c}}
|
|
\hline
|
|
& P1 & P2 & P3 & P4 \\
|
|
\hline
|
|
Szlifowanie & 0,4 & 0,6 & - & - \\
|
|
Wiercenie pionowe & 0,2 & 0,1 & - & 0,6 \\
|
|
Wiercenie poziome & 0,1 & - & 0,7 & - \\
|
|
Frezowanie & 0,06 & 0,04 & - & 0,05 \\
|
|
Toczenie & - & 0,05 & 0,02 & - \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
\item Dochody ze sprzedaży produktów (w zł/sztukę) określają składowe wektora
|
|
$\mathbf{R} = (R_{1},...,R_{4})^{T}$. Wektor $\mathbf{R}$ opisuje 4-wymiarowy rozkład
|
|
\textit{t}-Studenta z 4 stopniami swobody, którego wartości składowych zostały zawężone do
|
|
przedziału $[5;12]$. Wektor wartości oczekiwanych $\mu$ oraz macierz kowariancji
|
|
$\Sigma$ niezawężonego rozkładu \textit{t}-Studenta są następujące:
|
|
\begin{displaymath}
|
|
\mathbf{\mu} =
|
|
\begin{pmatrix}
|
|
9 \\ 8 \\ 7 \\ 6 \\
|
|
\end{pmatrix},
|
|
\mathbf{\Sigma} =
|
|
\begin{pmatrix}
|
|
16 & -2 & -1 & -3 \\
|
|
-2 & 9 & -4 & -1 \\
|
|
-1 & -4 & 4 & 1 \\
|
|
-3 & -1 & 1 & 1 \\
|
|
\end{pmatrix}
|
|
\end{displaymath}
|
|
|
|
\item Istnieją ograniczenia rynkowe na liczbę sprzedawanych produktów w danym miesiącu:
|
|
\begin{center}
|
|
\begin{tabular}{l*{4}{c}}
|
|
\hline
|
|
& P1 & P2 & P3 & P4 \\
|
|
\hline
|
|
Styczeń & 200 & 0 & 100 & 200 \\
|
|
Luty & 300 & 100 & 200 & 200 \\
|
|
Marzec & 0 & 300 & 100 & 200 \\
|
|
\hline
|
|
\end{tabular}
|
|
\end{center}
|
|
|
|
\item Jeżeli sprzedaż danego produktu przekracza 80 procent ilości jaką może wchłonąć rynek,
|
|
jego dochód spada o 20 procent.
|
|
|
|
\item Istnieje możliwość składowania do 200 sztuk każdego produktu w danym czasie w cenie 1 zł/sztukę
|
|
za miesiąc. W chwili obecnej (grudzień) w magazynach znajduje się po 50 sztuk każdego produkt.
|
|
Istnieje wymaganie, aby tyle pozostało również pod koniec marca.
|
|
|
|
\item Przedsiębiorstwo pracuje 6 dni w tygodniu w systemie dwóch zmian. Każda zmiana trwa 8 godzin.
|
|
Można założyć, że każdy miesiąc składa się z 24 dni roboczych.
|
|
\end{itemize}
|
|
|