06-02-2015 02:56 PM
Hello guys, first thanks for the attention.
I'm trying to use the nD Nonlinear System Single Solution Vi to get one solution of a nonlinear system, but seems like i've got some error at the parser. I tried to figure it out what was making such issue, and I think that there's something wrong with the brackets, but I didn't found what.
The error mensagens -23001,-23083,-23081 apears in the Vi .I'm attaching my program, if anyone could take a look I would be so glad.
Sorry for my bad English.
Thanks.
06-02-2015 04:10 PM
Yes. Too many brackets. If you open the front panel of nD Nonlinear System Single Soultion.vi while running your VI it tells you which elements of the formula have problems: elements 1 and 3. In element 1 there are two left brackets following 5* and only one right braket to match them. Element 3 also has two left brackets at the beginning and only one matching right bracket.
When I remove one of the left brackets on each of those elements it runs. I set Start to all 1s. This produces error -23024: No solution.
Considering the factor of 100000 scaling in each formula, this system may be very sensitive to the starting values.
Lynn
06-02-2015 05:04 PM
Thank you very much!
06-02-2015 07:17 PM
Just out of curiousity, what does this system of equations represent? Can you post a set of starting values for which the system has a solution? What is the expected solution?
Thanks,
Lynn
06-02-2015 07:29 PM
This system represent the modelation of a circuit, I didn't found yet a set o start solutions that works well, but the expected solution should be around (330000, 330000, 390000, 10E-6, 120E-6, 100E-9) that are the values of the three resistors and the three capacitors, respectively used in the circuit. I'm starting to think in fact that I will have to replace the VI that gives only one solution for the one which gives more.
06-02-2015 08:24 PM
Could you help me with this new error? I changed some equations and now I have a problem with the dimension of start. I used the following values for for the start: 100E3, 100E3, 100E3, 0, 0 and 0. Sorry for asking again, but i'm kind of new in labview.
Thanks a lot.
06-03-2015 04:40 PM
As far as I can see the VI you posted is the same as the original, including the bracket errors.
The start array must contain the same number of elements as the other two arrays. Those have seven elements while you only list 6 values for Start.
Why do you have the a-100000 element? That has the trivial solution a=100000 and a does not appear in the other equations.
Can you post a .pdf or .png file showing the circuit you are trying to model? The equations do not look quite right to me, considering that three elements are resistors and three are capacitors. I have been modeling circuits for 45 years.
Lynn