LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to find Global minimum of multiple functions

Hi all, 

 

So I've been looking into the optimization VI under the mathematics VI.

 

I was able to setup the"Find all Minima 1D" to see how it works.  

 

Now I need to have 2 separate functions/equations and find the minimum intersection of the two equations.

 

This is very easy to do even on a TI-89 calculator or using Matlab, but I need to figure out how to do this in LABVIEW.

 

Should I be using Global Optimization?

 

Let's say, two basic equations, f(x) = x^2, f2(x) = -3x+6

 

How do I set this up to find the minimum intersection of these?  

0 Kudos
Message 1 of 2
(1,953 Views)

Well, f(x) and g(x) intersect when f(x)=g(x). So f(x)-g(x)=0.

A new function using your two examples would then be (x^2) - (-3x+6) = 0. You could then use the find all zeros to find all crossing points, put them back through either original equation, and find the smallest.

But that's just one way to do it.

0 Kudos
Message 2 of 2
(1,933 Views)