LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Python Scipy minimize(method=’Nelder-Mead’) equivalent in LabView

Hello,

 

I need to rewrite an optimization algorithm from Python to LabView.

 

It uses the minimize(method=’Nelder-Mead’) method from Scipy package.
https://docs.scipy.org/doc/scipy/reference/optimize.minimize-neldermead.html#optimize-minimize-nelde...

 

I found that LabView has a similar VI - Downhill Simplex VI.
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/gmath/numericaloptimization/downhil...

 

gawex_0-1692807408990.png

 

 

I put the same start array to both codes but from the first iteration I am starting to receive different results.

 

Does anybody know if there is a 1to1 relation between those 2 functions? Need to add that I retrieved completely different results once the optimization was done and not only a difference at lower digits of precision than I expected.

 

Thank you for your help.

0 Kudos
Message 1 of 2
(754 Views)

You can check the VI's help to determine the algorithm used and see if there is a difference.

 

Do take into account the difference in data types between programming languages as the rounding method and errors will differ.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(742 Views)