File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424\end {itemize }
2525Formuliraj problem kot celoštevilski linearni program.
2626\end {vprasanje }
27+
2728\begin {odgovor }
29+ Za vsakega igralca želimo vedeti, ali bo član začetne postave. Igralcem po vrsti
30+ dodelimo števila od 1 do 8.
31+ Za $ i$ -tega igralca ($ 1 \le i \le 8 $ ) bomo uvedli spremenljivko $ x_{i}$ ,
32+ katere vrednost interpretiramo kot
33+ $$
34+ x_{i} = \begin {cases}
35+ 1 , & \text {če bo na $ i$ -ti igralec v začetni postavi, in} \\
36+ 0 & \text {sicer.}
37+ \end {cases}
38+ $$
39+ Zapišimo celoštevilski linearni program.
40+ \begin {multline* }
41+ \begin {alignedat }{3}
42+ \max \quad 213x_1 &+ 208x_2 &&+ 203x_3 &&+ 192x_4 \\
43+ + 196x_5 &+ 197x_6 &&+ 200x_7 &&+ 195x_8
44+ \quad \text {p.p.}
45+ \end {alignedat } \\
46+ \begin {alignedat }{2}
47+ \forall i \in \{ 1, \dots , 8\} : &\ &
48+ 0 \le x_i &\le 1, \quad x_i \in \Z
49+ \opis {V postavi je pet članov}
50+ && \sum _{i=1}^8 x_i &= 5
51+ \opis {V postavi so zastopane vse pozicije, od tega natanko en center}
52+ && x_1 + x_2 &= 1 \\
53+ && x_3 + x_4 + x_5 &\ge 1 \\
54+ && x_6 + x_7 + x_8 &\ge 1
55+ \opis {V postavi je ali Ciril ali Filip}
56+ && x_3 + x_6 &= 1
57+ \opis {Če začne Borut ali David, Hugo ostane v rezervi}
58+ && x_2 + x_4 + 2x_8 &\leq 2
59+ \end {alignedat }
60+ \end {multline* }
2861\end {odgovor }
2962\end {naloga }
You can’t perform that action at this time.
0 commit comments