# Need a Formula!

Greetings!

I have a complex mathematical problem I'm working on right now.  I have been given a list of variables and a final solution.  My job is to find the formula that created the solution from those variables.  (The formula doesn't have to contain all variables - in fact, in may need to only include 1 or 2, I don't know)

The variables:

a = 5.33
b = 6.51
c = 8
d = 1352
e = 94
f = 11.21
g = 11
h = 756
i = 117.47
j = 6.39
k = 0.8334
L = 5
M = 5.33
N = 5.32
O = 0
P = 1.15
Q = 5.06
R = 0.27

The Final Solution = 6.51

So how do these variables make up the final solution?  Remember, it doesn't have to include all variables.  The true number of variables is unknown since I don't know the formula.

Thanks!
John
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
The_Final_Solution = b

mlmcc
0
Commented:
f(a,b,M) = a/M * b

mlmcc
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
Do you want to be able to figure out *all* possible combinations of variables that could be a formula that gives you the final solution?

Genetic programming (GP) is the best way to do that.  If this is what you mean, let me know - I can give you a quick crash course in how to implement a GP algorithm for your problem.

baboo_
0
Commented:
By the way, here's a good place to start if you're curious:

http://www.genetic-programming.org/

And I have a fairly generalizable GP implementation sitting around - if you're interested, we could take a look at that.

baboo_
0
Commented:
There are an infinite number of formulas that can create the solution from those variables.
You might be able to reduce that to a smaller infinite number if you give us more sets of variables with their final solutions.
0
Commented:
haha, i like mlmcc's first comment :)
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.