Python Matrix solving {A}[x] = [B] where parts of x and B are known -



Python Matrix solving {A}[x] = [B] where parts of x and B are known -

in python possible solve {a}[x]=[b] known matrix, b known vector , x unknown vector.

but possible solve {a}[x]=[b] if know 3x3 matrix, x = [v1 5 v3] , b = [0 i2 0] ?

thank much help.

it's feasible cut down columns , rows , go downwards route rather suggest alternative approach here. reformulate problem quadratic problem in 3n unknowns. utilize cvxopt solve it. trying minimize 2-norm of residual r = ax-b x , b vector in n variables. define

0 = row_i of * x - b_i - r_i

introduce constraints on

x , b

e.g. b_1 = 0 x_2 = 0.3*x1 etc.

and minimize

sum r_i^2

you sum abs(r_i) , introduce set of n variables , solve linear problem in 4n dimensions

python matrix equation-solving

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -