Is Minimze Pregnant

Is Minimze Pregnant - Is Minimize Pregnant - Messages

#1 Posted: 5/12/2016 12:45:43 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 5/12/2016 11:49:34 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 KiB) downloaded 227 time(s).
GradientDescent.sm (16 KiB) downloaded 189 time(s).
NCGM.sm (19 KiB) downloaded 167 time(s).
LevenbergMarquardt.sm (45 KiB) downloaded 201 time(s).
NewtonMethod.sm (18 KiB) downloaded 233 time(s).
NelderMead.sm (33 KiB) downloaded 184 time(s).
GaussNewton.sm (20 KiB) downloaded 199 time(s).


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 Posted: 5/14/2016 12:28:06 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 46 time(s).

#4 Posted: 5/14/2016 7:11:34 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: 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 Posted: 5/15/2016 11:57:36 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 users liked this post
Davide Carpi 5/16/2016 4:50:00 AM
  • New Posts New Posts
  • No New Posts No New Posts