如果我理解正确的话, x 的某些元素是已知的,而有些元素不是已知的,并且您想求解 Ax = b 以获得 x 的未知值,对吗?
设 Ax = [A1 A2][x1; x2] = b,其中向量 x = [x1; x2],向量 x1 具有未知的 x 值,向量 x2 具有已知的 x 值。那么,A1x1 = b - A2x2。因此,使用 scipy.linalg.solve 或任何其他所需的求解器求解 x1。
If I understand correctly, some elements of x are known, and some are not, and you want to solve Ax = b for the unknown values of x, correct?
Let Ax = [A1 A2][x1; x2] = b, where the vector x = [x1; x2], the vector x1 has the unknown values of x, and vector x2 have the known values of x. Then, A1x1 = b - A2x2. Therefore, solve for x1 using scipy.linalg.solve or any other desired solver.
发布评论
评论(1)
如果我理解正确的话, x 的某些元素是已知的,而有些元素不是已知的,并且您想求解 Ax = b 以获得 x 的未知值,对吗?
设 Ax = [A1 A2][x1; x2] = b,其中向量 x = [x1; x2],向量 x1 具有未知的 x 值,向量 x2 具有已知的 x 值。那么,A1x1 = b - A2x2。因此,使用 scipy.linalg.solve 或任何其他所需的求解器求解 x1。
If I understand correctly, some elements of x are known, and some are not, and you want to solve Ax = b for the unknown values of x, correct?
Let Ax = [A1 A2][x1; x2] = b, where the vector x = [x1; x2], the vector x1 has the unknown values of x, and vector x2 have the known values of x. Then, A1x1 = b - A2x2. Therefore, solve for x1 using
scipy.linalg.solve
or any other desired solver.