10-16-2013 01:43 PM
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?
10-16-2013 07:13 PM
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.