- #1
ytht100
- 20
- 0
A=[ 8147 6324 9575 9572
9058 0975 9649 4854
1270 2785 1576 8003
9134 5469 9706 1419];
D=diag([T^(-3)*L^2 T^(-3)*L^2 T^(-1)*L T^0*L^0]);
I have matrix A whose first two columns are of the units T^3/L^2, third columns unit is T/L, and the last column is non-dimensional. T is time and L is length.
Therefore, if I give different (including non-integer) units to T and L by multiplying A with D for scaling A, I have different resulting matrix A*D with different condition number.
Question: how can obtain an optimal T and L?
Attempted solutions: 1, it seems like an optimization problem. But I don't know how to optimize it, I don't know how to obtain the gradient? The real situation has much bigger A, therefore can't be solved analytically for eigenvalue, therefore can'b be solved analytically for condition number.
2, it seems the problem can be converted into Linear Matrix Inequalities for solution in Matlab (http://users.isy.liu.se/rt/andersh/teaching/lmi.pdf). But I don't know exactly how? Specifically, I don't know to code the problem into a style of https://www.mathworks.com/help/robust/lmis.html.
Could you please provide any suggestions? I am stucked weeks on this problem.
9058 0975 9649 4854
1270 2785 1576 8003
9134 5469 9706 1419];
D=diag([T^(-3)*L^2 T^(-3)*L^2 T^(-1)*L T^0*L^0]);
I have matrix A whose first two columns are of the units T^3/L^2, third columns unit is T/L, and the last column is non-dimensional. T is time and L is length.
Therefore, if I give different (including non-integer) units to T and L by multiplying A with D for scaling A, I have different resulting matrix A*D with different condition number.
Question: how can obtain an optimal T and L?
Attempted solutions: 1, it seems like an optimization problem. But I don't know how to optimize it, I don't know how to obtain the gradient? The real situation has much bigger A, therefore can't be solved analytically for eigenvalue, therefore can'b be solved analytically for condition number.
2, it seems the problem can be converted into Linear Matrix Inequalities for solution in Matlab (http://users.isy.liu.se/rt/andersh/teaching/lmi.pdf). But I don't know exactly how? Specifically, I don't know to code the problem into a style of https://www.mathworks.com/help/robust/lmis.html.
Could you please provide any suggestions? I am stucked weeks on this problem.