error in a system of equations

error in a system of equations - impossible to get or set an item because it does not exist - Messages

#1 Posted: 11/5/2019 2:02:37 PM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Hi to everyone
I am having difficulty solving a linear system like in the picture.
the error says:"impossible to get or set an item because it does not exist"
does anyone know where the error can be and how to solve this problem?
Thanks in advance
ferrvrveve.png
#2 Posted: 11/5/2019 3:08:12 PM
sergio

sergio

115 likes in 329 posts.

Group: User

"roots" does not work with the units. You must adimensionare equations, or you can try the other features present in the plugin (eg "FindRoot" present "Nonlinear solvers" plugin)

sergio
#3 Posted: 11/5/2019 3:52:23 PM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

I tried another function but it still gives me an error...
oioijoijoijoi.png
#4 Posted: 11/5/2019 11:57:28 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I tried another function but it still gives me an error...


It's a huge system, and generally does not accept all initials same.
I would zap units first. This kind of solving should have it be
solved from P & P [Pain & Prestige] as it reflects real project
that does come out of the blue. Even Mathcad Given/Find may fail
or pedal through constrain.
Attach the work sheet ... some source reference as well.

#5 Posted: 11/6/2019 2:25:20 AM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

here is the spreadsheet
calcoli.sm (46 KiB) downloaded 31 time(s).
it is a system of equations derived from the condition of dynamic equilibrium in the stationary curve motion of a bicycle
#6 Posted: 11/6/2019 4:16:32 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Equations 3 and 4 probably demand different values for N.r+N.f So there is no solution.

If the system has a solution, the function Solve() from Maxima plugin might find it.

2019-11-06 08_14_22-SMath Studio - [calcoli.sm_].png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
sergio 11/6/2019 6:47:00 AM
#7 Posted: 11/6/2019 3:20:34 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

here is the spreadsheet


1. equalities [1,2,3] are consistant 'N'
2. equalities [4,5,6] are inconsistant 'mixed units'

calcoli.sm (52 KiB) downloaded 35 time(s).

You must make the system consitant before attempting solve.
#8 Posted: 11/6/2019 3:35:50 PM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

I tried to use the solve function but it still gives me an error saying that S is not defined
hfhfhfhfhffhfh.png
#9 Posted: 11/6/2019 3:47:31 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I tried to use the solve function but it still gives me an error saying that S is not defined


Did you read my reply just before your visit ?
#10 Posted: 11/6/2019 4:20:21 PM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Wrote

Wrote

I tried to use the solve function but it still gives me an error saying that S is not defined


Did you read my reply just before your visit ?



sorry, when I wrote, I didn't notice your message
#11 Posted: 11/10/2019 11:11:18 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. Try this setup, using al_ library. I don't know if using better guess values can get better results (eqn 3 and 4 don't get good results)

calcoli.sm (50 KiB) downloaded 39 time(s).

Best regards.
Alvaro.
#12 Posted: 11/11/2019 7:37:20 AM
Ale16595

Ale16595

0 likes in 35 posts.

Group: User

Wrote

Hi. Try this setup, using al_ library. I don't know if using better guess values can get better results (eqn 3 and 4 don't get good results)

calcoli.sm (50 KiB) downloaded 39 time(s).

Best regards.
Alvaro.



Hi, thanks for the reply, but I think I found the error. The system I wrote has two linearly dependent equations, and for this reason it cannot find a solution.
I will have to modify the whole problem.
#13 Posted: 11/11/2019 2:55:47 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hi. Try this setup, using al_ library. I don't know if using better guess values can get better results (eqn 3 and 4 don't get good results)


Hello Alvaro,
The attached CSTR [SS 6179] example is offered differently,
it is initialized from random guesses: success.
Cheers ... Jean

Solve al_nleqsolve CSTR.sm (38 KiB) downloaded 52 time(s).

1 users liked this post
Alvaro Diaz Falconi 11/12/2019 1:29:00 PM
#14 Posted: 11/12/2019 1:29:59 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

Wrote

Hi. Try this setup, using al_ library. I don't know if using better guess values can get better results (eqn 3 and 4 don't get good results)


Hello Alvaro,
The attached CSTR [SS 6179] example is offered differently,
it is initialized from random guesses: success.
Cheers ... Jean

Solve al_nleqsolve CSTR.sm (38 KiB) downloaded 52 time(s).



Hi Jean. Thanks, very interesting.
Best regards.
Alvaro.
  • New Posts New Posts
  • No New Posts No New Posts