Need a Formula!

Posted on 2004-11-19
Last Modified: 2010-04-17

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.

Question by:dandm2003
    LVL 100

    Expert Comment

    The_Final_Solution = b

    LVL 100

    Accepted Solution

    f(a,b,M) = a/M * b

    LVL 3

    Expert Comment

    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.

    LVL 3

    Assisted Solution

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

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

    LVL 84

    Expert Comment

    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.
    LVL 3

    Expert Comment

    haha, i like mlmcc's first comment :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Title # Comments Views Activity
    withoutString  challenge 40 119
    scoresClump  challenge 31 85
    wefewf 2 28
    Using YubiKey with REST API application 2 51
    Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now