+ Reply to Thread
Results 1 to 7 of 7

Complex simultaneous equation, smart solver help

  1. #1
    Registered User
    Join Date
    10-11-2007
    Posts
    3

    Complex simultaneous equation, smart solver help

    Hi, I have a semi complex EXCEL problem. Here is the deal.

    I have a known solution to a problem with several unknowns. Let's make it simple, and say:

    x + z + w + v + u = 10

    I want excel to basically randomize 5 variables that will make this solution work. Here's the second catch though:

    x, z, w, v, and u must be in a certain range. For instance, let's say:

    x must be between 2 and 6
    z must be between 0 and 2
    w must be between 1 and 4
    v must be between 2 and 3
    u must be between 4 and 5

    Can anyone point me on the right track? (Keep in mind that my knowledge of EXCEL is still very low so please explain in full detail on how you would approach this...)

    Thanks...

    PS - the variables needn't necessarily be integers...

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Complex simultaneous equation, smart solver help

    try using the solver add in
    (if its not activated go to tools /addins and select it)
    then in say a1 to a5 put any random values you like
    in b1 put =sum(a1:a5)
    then tools/solver
    set target cell as b1 by clicking it
    select "by changing cells" and select a1:a5
    add the constraints for each cell so for a1 >=2 and<=6 which will represent x then a2 will represent z and so on
    set the precision in options
    ok
    then solve
    repeat with a different set of random numbers in a1:a5 as many times as you like
    see pics
    Attached Images Attached Images
    Last edited by martindwilson; 12-06-2009 at 06:53 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-11-2007
    Posts
    3

    Re: Complex simultaneous equation, smart solver help

    Thanks...

    It seems like it won't work for my problem though. You see, the actual equation is far more complex than that. Apparently, then, because the solver is only linear, that it doesn't work. Also, I am using Open Office (the solver is pretty similar, though.) If you want to know the exact equation and variables I want to solve, let me know, maybe you know of some more advanced trick.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,061

    Re: Complex simultaneous equation, smart solver help

    Would be easier to upload workbook...
    Avoid important data but remain important structure.
    Never use Merged Cells in Excel

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Complex simultaneous equation, smart solver help

    here we go! ask one question then change it to something else.
    how would anyone know that your equation is far more complex and even if it id it might help if you had posted an example in the first place.

  6. #6
    Registered User
    Join Date
    10-11-2007
    Posts
    3

    Re: Complex simultaneous equation, smart solver help

    I just wanted to know the concept behind it, I didn't know that the solver was only linear. (I do feel kind of dumb now, after looking at it, should have guessed... had never touched the solver until now though...) I figured the same concept could be extended to the my more complex problem, and thus that I wouldn't have to waste anyones' time with a little more of a headache of a problem. Sorry about that. Anyway...

    Here is the uploaded excel file. You only really need to worry about the cells in VIOLET color (they are cells AU-AY)

    http://www.filefactory.com/file/a1hb...imization3.xls

    The equation I am actually using is the section lift coefficient equation. If you don't know what it is, it is right here.

    http://en.wikipedia.org/wiki/Lift_coefficient

    Cl = L' / (.5 * rho * v^2 * c)

    Where:

    L' = L / unit wingspan
    Wingspan = Lc

    So what I am trying to do, is essentially come up with the design space of the wing. To do this, I want to find out all (or a large portion of) the solutions in which Cl = 2.

    Variables will be:

    c (between 3 and 12 inches)
    Lc (between 12 and 48 inches)
    L* ( between 35 and 200 lb)
    V (between 25 and 300 MPH)


    *Note that L and W will be synonymous... since I am setting lift equal to weight (level flight)
    **You would note also that I am kind of mixing units. I take care of that in all the conversion factors, for the sake of solving the problem don't stress too much about this. In cell AY16 and down, this is already solved anyway.

    Now, I set up the table as you suggested for the easy example, and it actually seems like it comes up with a maximum, sort of, but can't do a minimum, and can't do anything when it comes to solving Cl = 2.
    Attached Files Attached Files
    Last edited by Cirion; 12-07-2009 at 04:21 PM.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Complex simultaneous equation, smart solver help

    How about posting the workbook here?
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1