100 likes | 266 Views
利用 Online tool 作矩陣運算並 處理線性規劃問題. L inear Programming. M atrix computation. http://www.bluebit.gr/matrix-calculator/ This is a online tool for matrix calculator. Matrix computation. Matrix Transpose : 轉置矩陣 Matrix Inverse : 反矩陣 Determinant calculation : 行列式值
E N D
利用 Onlinetool 作矩陣運算並處理線性規劃問題 Linear Programming
Matrix computation • http://www.bluebit.gr/matrix-calculator/ • This is a online tool for matrix calculator
Matrix computation • Matrix Transpose : 轉置矩陣 • Matrix Inverse : 反矩陣 • Determinant calculation : 行列式值 • Matrix Multiplication : 矩陣乘法 • Systems of linear equation : 線性方程組
Matrix computation • General system of linear equation : ax + by + cz = k1 dx + ey + fz = k2 gx + hy+iz = k3 • Solving linear equation by AX =b • Where
Matrix computation • 當 A 的反矩陣存在,則有唯一解 x , y, z 為 • X = A-1 *b • Thus,
Matrix computation • For example : • x + 2y + 3z = 2 • x + + z = 3 • x + y - z = 1
Matrix computation • Solution: • Show in online matrix calculator
Matrix computation • Using Maple to solve matrix computation > with(LinearAlgebra): > m:=Matrix([[1, 2, 3],[1, 0, 1],[1, 1, -1]]); > b:=Vector([2, 3, 1]); > LinearSolve(m, b);
Linear programing • Help : Topic search > Linearsystemplot • with(Student[LinearAlgebra]): • infolevel[Student[LinearAlgebra]] := 1: • sys := {2*x + y = 2, x - y = 2,x=-2}; • LinearSystemPlot( sys ); • LinearSystemPlot( sys, [x,y,z] );
Linear programing • Help : Topic search > linearprogramming • with(Optimization): • LPSolve(-4*x-5*y, {2*x + y <= 2, x - y <= 2,x=-2});