+ Reply to Thread
Results 1 to 4 of 4

Non linear simultaneous equations into a matrix and solve

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Glasgow, Scotland
    MS-Off Ver
    2013
    Posts
    6

    Non linear simultaneous equations into a matrix and solve

    looking for help. I've basically got a system the generated a system of non linear equations that are circle equations. It represents a coordinate system plotting bearings positions of a mechanical machine. The issue being I don't know how to solve these I've only been able to print the actual formula into the cells but as the all depend on each other they cant solve without a guess. Any advice would be welcomed.

    all the if statements add more equations although these probably aren't needed.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,610

    Re: Non linear simultaneous equations into a matrix and solve

    I am having a difficult time reverse engineering what you are doing here. I can see a lot of equations that look something like z=(l^2-(y1+y2)^2)^0.5-x1. I also did not spend enough time trying to reverse engineer what your VBA code is doing.

    If it helps, I would expect to use a numerical procedure similar to that described here: http://www.csun.edu/~lcaretto/me309/11-solvingSNLAE.pdf

    1) Arrange all equations so they are in the form fk(unkowns)=0
    2) Enter my initial guesses for unkowns
    3) Enter my fk(unkowns) formulas
    4) Enter a cell (my future "objective function) that is the sum of the squares of fk(unkowns) (=SUMSQ(fk))
    5) Call up Solver and tell it to:
    5a) Set Target cell: objective function from step 4
    5b) To a value of 0 (or to a minimum -- should be the same thing)
    5c) By changing: the unknown values
    5d) Subject to any constraints.
    6) Evaluate Solver's solution to make sure it is reasonable.

    VBA would not be needed using this kind of approach.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    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: Non linear simultaneous equations into a matrix and solve

    Maybe you could explain what all that means and what you're trying to do.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    03-09-2017
    Location
    Glasgow, Scotland
    MS-Off Ver
    2013
    Posts
    6

    Re: Non linear simultaneous equations into a matrix and solve

    basically need aid in creating a matrix of all the equations that the VBA creates. My VBA knowledge is very poor. And although I know the steps I need to solve a matrix of non-linear equations (my circle equations) how to code this I am having difficulty with, this is a lot to do with the equations being variable depending on the type of machine which alters the arrangement of variables. This is very hard to explain so any questions I'll try my best to answer

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 03-31-2015, 11:07 AM
  2. Replies: 2
    Last Post: 02-08-2014, 01:49 PM
  3. system of 3 non linear equations/matrix/code
    By artome in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-10-2013, 08:11 AM
  4. How to Solve System of Linear Equations (Without Solver)?
    By ExpatYankee in forum Excel General
    Replies: 2
    Last Post: 11-08-2011, 05:38 AM
  5. Replies: 2
    Last Post: 10-10-2011, 09:42 AM
  6. 10 unknowns using 10 simultaneous equations
    By j_cash777 in forum Excel General
    Replies: 4
    Last Post: 01-31-2010, 07:12 PM
  7. simultaneous equations/matrix inversion in Excel 2007
    By Robert2008 in forum Excel General
    Replies: 1
    Last Post: 02-20-2009, 10:02 AM

Tags for this Thread

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