LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find all minima

I would like to find the minimum of a function using Brent method. I can use Find all minima or Brent with Derivatives VI from optimization palette. However, both VIs require using string as input, which is not convenient for me. Is there any option to use something more flexible like formula node. I need to do so because some parameters in the function are the outputs of previous calculations or have to be controls. For example let us say the function  y=ax^2+b-c, where b is an output of previous calculation and c is a control. I attached my VI

0 Kudos
Message 1 of 6
(3,285 Views)

Hi, generate the string based on the polynomial coefficients could help you. Your polynomial is always of the same degree?.

 

minima-formstr.png

0 Kudos
Message 2 of 6
(3,271 Views)

Thank you very much for your help. Could you gratfully attache the VI?

0 Kudos
Message 3 of 6
(3,214 Views)
The VI is attached. It's a snippet.
0 Kudos
Message 4 of 6
(3,206 Views)

You can drag the code from the snippet onto your block diagram

 

More info on VI snippets if you are unsure

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2PkCAI&l=en-US

0 Kudos
Message 5 of 6
(3,170 Views)
0 Kudos
Message 6 of 6
(3,146 Views)