loop for routine - Сообщения
I need help with this routine. I created a loop with while function, but it takes too long in finding a solution.
I think code its OK, but I dont know the software limitations... (I programmed the same in scilab and worked well)
Thanks in advance.
Ultimate Strength Analysis_v0.0.sm (32 КиБ) скачан 147 раз(а).
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
WroteHello,
It seems (not sure) that your code does not change the exit loop condition and you are in infinite loop - see the picture please.
Regards,
Radovan
But why?? I tried to use a for loop, but it's the same result. First I thougth it was because of the units, so I take them away from the matrixes, but now I'm running out of ideas...

I tried doing a second loop, without for or while, but again the same...

Ultimate Strength Analysis_4.1.sm (44 КиБ) скачан 134 раз(а).

Wrote
I tried doing a second loop, without for or while, but again the same...
If you set all regions to optimization> numeric (in the context menu, after marking them all with Ctrl-A), then I see no problems in the attachment 4.1.
Wroteat the end of iteration, nothing changes. iteration means values you start with have to change for the next iteration. same values are being used in every iteration. same aux is being calculated every time. the loop can not end this way. at the end, i am saying the same thing that omorr have said
i hope i could help.
you were rigth, i forgot to redefine xIC_ini in the last else... thanks
WroteWrote
I tried doing a second loop, without for or while, but again the same...
If you set all regions to optimization> numeric (in the context menu, after marking them all with Ctrl-A), then I see no problems in the attachment 4.1.
THANKS, it was the optimization method, everithing works fine with numeric

325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
Regards,
Radovan
-
Новые сообщения
-
Нет новых сообщений