Compare these two questions.
Question | 4011197 | 4009941 |
---|---|---|
title | Why is there a difference between MATLAB and manual calculation for eigenvectors | Linear Programming in R using lpSolve dismisses constrains |
status | open | closed |
sample problem | compute eigenvectors of $\begin{bmatrix}1&2&2\\0&1&2\\0&0&2\end{bmatrix}$ | $\max A + B + C + D$ subject to $A + 2B + 3C + 4D = 10$ $A, B, C, D \in \{0,1\}$. |
theoretical result | $\lambda_1 = 1, v_1 = (1,0,0)^T$, $\lambda_2 = 2, v_2 = (6,2,1)^T$ | $A=B=C=D=1$ |
procedures | A = [… ; … ; …]; [P D] = eig(A) |
library(lpSolve) f.obj <- c(1,1,1,1) … lp("max", f.obj, f.con, f.dir, f.rhs, binary.vec = 1:4, all.bin=TRUE) |
computed results | {(1,0,0), (-1,0,0)} for eigenvalue of 1 ;{(640/683, 640/2049, 320/2049)} eigenvector for eigenvalue of 2 . |
A=1, B=1, C=0, D=1 |
Both questions ask for the reason for the error. Why do we allow one question open while another one is closed?
P.S. Credits to @MartinSleziak for his table
lpSolve
or another method for computing. That is definitely off-topic, I haven't looked at the other one. But if that other one is literally about the choice of library to use, that's off-topic. $\endgroup$eig
method, which is a core part in MATLAB, which means "matrix lab". However, judging from whether it belongs to the core syntax or not seems absurd, as software components evolve from time to time. One module can get included or kicked out from the core part in an update. I'm still puzzled why we leave another one open. $\endgroup$