Is Minimze Pregnant

Is Minimze Pregnant - Is Minimize Pregnant - 消息

#1 已发布: 2016/5/12 00:45:43
Jean Giraud

Jean Giraud

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

组: User

Minimize is really missing in Smath. In the mean time,
Genfit is the alternative to a built-in "Minimize".

Jean

Forum Minimize.gif
#2 已发布: 2016/5/12 11:49:34
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Ah, yes... Minimize/maximize are part of the NonlinearSolvers plugin. Before implement them or add new algorithms, I want to improve several things in the plugin.

As for now you can use the following:

GoldenSectionSearch.sm (21.17 KiB)已下载 2076 次。
GradientDescent.sm (16.99 KiB)已下载 2295 次。
NCGM.sm (19.68 KiB)已下载 2315 次。
LevenbergMarquardt.sm (45.97 KiB)已下载 2383 次。
NewtonMethod.sm (18.79 KiB)已下载 2368 次。
NelderMead.sm (33.02 KiB)已下载 2286 次。
GaussNewton.sm (20.15 KiB)已下载 2388 次。


I see that Smath 0.97.5346 doesn't prompt the plugin requirement form --> before opening the worksheets, go in the Tools > Plugins... > Online Gallery and download the latest update (I've fixed a small issue).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 已发布: 2016/5/14 00:28:06
Jean Giraud

Jean Giraud

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

组: User

Thanks Davide,

"GoldenSectionSearch" works fine. I have added the Mathcad 11 equivalent,
just a bit more compacted. The Mathcad "While" loop is self indexing but
NOT attempted to code, because your coding is more complete "target" min/max.
In the attached work sheet, I give the solve block [much faster].
Nice to know how "GoldenSectionSearch" works under the hood.
I will visit more from your work sheets.

Interesting the implicit coding:

GoldenSearch.gif


Cheers, Jean

Golden ratio.sm (63.22 KiB)已下载 1621 次。

#4 已发布: 2016/5/14 07:11:34
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Very nice Jean

As for the truth it is possible to code Min_Gr like in mathcad; you need SMath 0.98, since previously the parsing order of assignments inside matrices was made in reverse order (that makes it possible to code it even in SMath 0.97.*, but in a cucumbersome way)

Cloud: http://smath.info/cloud/worksheet/o4UBkhH4

2016-05-14 12_09_34-Min_Gr - SMath Studio in SMath Cloud.png

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 已发布: 2016/5/15 11:57:36
Jean Giraud

Jean Giraud

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

组: User

Wrote

Very nice Jean

As for the truth it is possible to code Min_Gr like in mathcad; you need SMath 0.98, since previously the parsing order of assignments inside matrices was made in reverse order (that makes it possible to code it even in SMath 0.97.*, but in a cucumbersome way)



Yes Davide !

Can't be more right. Smath official 5346 does not digets the Mathcad code as you have
implemented. It made me shovel the clouds for a while ! While loop !

Just between you and me, Andrey has received my special "birthday card"

Jean

1位用户喜欢此帖子
Davide Carpi 2016/5/16 04:50:00
  • 有新帖
  • 无新帖