error in a system of equations

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

#1 已发布: 2019/11/5 14:02:37
Ale16595

Ale16595

0个赞,共35个帖子。

组: 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 已发布: 2019/11/5 15:08:12
sergio

sergio

127个赞,共342个帖子。

组: 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 已发布: 2019/11/5 15:52:23
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

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

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2019/11/6 02:25:20
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

here is the spreadsheet
calcoli.sm (46.18 KiB)已下载 1183 次。
it is a system of equations derived from the condition of dynamic equilibrium in the stationary curve motion of a bicycle
#6 已发布: 2019/11/6 04:16:32
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
sergio 2019/11/6 06:47:00
#7 已发布: 2019/11/6 15:20:34
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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.58 KiB)已下载 1135 次。

You must make the system consitant before attempting solve.
#8 已发布: 2019/11/6 15:35:50
Ale16595

Ale16595

0个赞,共35个帖子。

组: User

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

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2019/11/6 16:20:21
Ale16595

Ale16595

0个赞,共35个帖子。

组: 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 已发布: 2019/11/10 23:11:18
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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.31 KiB)已下载 1179 次。

Best regards.
Alvaro.
#12 已发布: 2019/11/11 07:37:20
Ale16595

Ale16595

0个赞,共35个帖子。

组: 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.31 KiB)已下载 1179 次。

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 已发布: 2019/11/11 14:55:47
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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.81 KiB)已下载 1163 次。

1位用户喜欢此帖子
Alvaro 2019/11/12 13:29:00
#14 已发布: 2019/11/12 13:29:59
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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.81 KiB)已下载 1163 次。



Hi Jean. Thanks, very interesting.
Best regards.
Alvaro.
  • 有新帖
  • 无新帖