|
本帖最后由 hbghlyj 于 2024-10-22 16:43 编辑 求 $\begin{array}l
x_1 + 2 x_2 + 3 x_3 + 4 x_4 + 5 x_5 + 6 x_6 + 7 x_7=28\\
x_1 + x_3 + x_5 + x_7=4\\
2 x_1 + 4 x_2 + 5 x_3 + 6 x_4 + x_5 + x_6 + x_7=20\\
x_1 + 4 x_2 + 2 x_3 + 5 x_4 + 2 x_5=14\\
x_3 + x_4 + 2 x_5 + 2 x_6 + 3 x_7=9
\end{array}$的整数解. The Smith Normal Form page373
Solution系数矩阵$A$计算得 $\operatorname{rank}A=5,\operatorname{null}A=2$
$\mathrm{SNF}(A)=UAV=\pmatrix{D\\&0_{2\times2}},D=\text{diag}(1,1,1,1,2)$.
常数列$c=(28,4,20,14,9)^t$
$c'=U^{-1}c=(-44,53,37,-50,22)^t$
$D^{-1} c'=(-44,53,37,-50,11)^t$
所以$x=(-44,53,37,-50,11,0,0)^{t}$是一个解.
$A$的零空间是$V$的最后2列张成的.
因此全部解 $\begin{array}{l}x_1=-44+29s+16t \\x_2=53-34s-18t \\x_3=37-23s-13t \\x_4=-50+33s+18t \\x_5=11-6s -4t \\x_6=s\\x_7=t\end{array}$ 其中$s,t$为任意整数. 
通过上述方法: | 在 CalcMe 中计算: | smith_normal_form_basis($(15\,18\,24)$)
輸出$\left\{(1),(0\,0\,3),B\right\}$
所以$(1)\cdot(15\,18\,24)\cdot B=(0\,0\,3)$,其中$B =\left(\begin{smallmatrix}2&0&1\\5&4&2\\-5&-3&-2\end{smallmatrix}\right)$
我們想要求出$\left(\begin{smallmatrix}?\\?\\?\end{smallmatrix}\right)$使得$(0\,0\,3)\cdot\left(\begin{smallmatrix}?\\?\\?\end{smallmatrix}\right)=69$
當然是$\left(\begin{smallmatrix}?\\?\\?\end{smallmatrix}\right)=\left(\begin{smallmatrix}s\\t\\\frac{69}3\end{smallmatrix}\right)$
所以当s和t都取整数时的完全整数解为
$$B\cdot\pmatrix{s\\t\\\frac{69}3}=\pmatrix{2s+23\\5s+4t+46\\-5s-3t-46}$$ |
|
|
|