Is Minimze Pregnant

Is Minimze Pregnant - Is Minimize Pregnant - Messaggi

#1 Pubblicato: 12/05/2016 00:45:43
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 12/05/2016 11:49:34
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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) scaricato 2061 volta(e).
GradientDescent.sm (16,99 KiB) scaricato 2276 volta(e).
NCGM.sm (19,68 KiB) scaricato 2294 volta(e).
LevenbergMarquardt.sm (45,97 KiB) scaricato 2363 volta(e).
NewtonMethod.sm (18,79 KiB) scaricato 2351 volta(e).
NelderMead.sm (33,02 KiB) scaricato 2261 volta(e).
GaussNewton.sm (20,15 KiB) scaricato 2368 volta(e).


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 Pubblicato: 14/05/2016 00:28:06
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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) scaricato 1601 volta(e).

#4 Pubblicato: 14/05/2016 07:11:34
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 15/05/2016 11:57:36
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 utenti hanno apprezzato questo post
Davide Carpi 16/05/2016 04:50:00
  • Nuovi post
  • Nessun nuovo post