symbolic math - Matlab 2012b too slow when solving a system of two equations on mupadmex(statement) -


I am trying to solve a system of two non-linear equations for loop in matlab. I know that the program may be the reason for slow down the loop, but it takes about an hour to solve a solution right now. Upon debugging the code, I realized that the program is hung from this line:

  [res, status] = mupadmex (statement);  

If I terminate the program, I get the following:

  During the Muppadengin / Evelyn (line 97), the user will get the Mupdengine / 150)) [S, mistake] = Aquilin (engine, STMT); Solution (line 160) sol = eng.feval ('symobj :: solutionful', eqns, vars); In Algorithm 2 (line 139) Answer = Solution (F, G);  

where line 97 refers to the same line of code. Here is the part of my code where I call the solve function:

  sys ro1 t_prime1 value (t_prime1> 0) i = 1: 1: length (n1ps) n1p = n1ps ( 1, i); N2P = N2 SPS (1, I); W1 = (ro1 / theta_p) * (1-exp ((- 1) * theta_p * t_prime1);; W2 = exp ((- 1) * theta_p * t_prime1); W3 = (ro1 / theta_p) * (1-exp ((1) * theta_p * t1) - q (1,1); W4 = (1-exp ((1) * n1p * theta_p * T1)) / (1-exp ((- 1) * theta_p * t1)); W5 = exp ((- 1) * theta_p * (T1-t_prime1)); Q1 = (w1 + w2 * w3 * w4) * w5 - q (1,1); W6 = ((ro-ro1) / theta_p) * (1-XP ((1) * theta_p * (n1p * T1 + t_prime1 - n2p * T2)); W7 = exp ((- 1) * theta_p * (n1p * t1 + t_prime1 - n2p * t2)); W8 = ((ro-ro1) / theta_p) * (1-exp ((1) * theta_p * t2) - q (1,2); W9 = (1-exp ((- 1) * n2p * theta_p * t2) / (1-exp ((- 1) * theta_p * t2); w10 = app ((- 1) * theta_p * (t -2- (n1p * t1 + t_prime1 - n2p * t2)); q2 = (w6 + w7 * w8 * w9) * w10 - q (1,2); q1_prime = q (1 , 1) * ((EX (TN1 - N1P-1) * THETA_PP * T1) -1) / (1-XP (- 1) * THETA_PP * T1)); Q2_prime = q (1,2) * (((TN2 - N2P-1) * THETA_PP * T2) -1) / (1-XP (- 1) * THETA_PP * T2); F = Q1_prime-Q1; G = Q2_prime-Q2; Answer = Hull (F, G); End  


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -