Results 1 to 8 of 8

Using Solver With Another Iterative Routine

Threaded View

  1. #7
    Registered User
    Join Date
    10-02-2023
    Location
    Aktau
    MS-Off Ver
    365
    Posts
    7

    Re: Using Solver With Another Iterative Routine

    Hello, the problem is the following:

    I have an excel worksheet that solves system of PDEs using newton-raphson method. The solution obviously depends on some variables that I input. There is a VBA macro (lets call it VBA1) that is used to solve the equations, after solving the equations the macro inputs the solution as values. Basically I can input variables, run macro VBA1 and it gives results as values.
    The VBA1 macro gives me modeled results, which depend on variables. I also have some real data from my experiments that I want to fit to the model. The problem can be solved by comparing these two data sets, defining SSE and minimizing it by varying input parameters. I guess it can be done by some optimization algorithm, but in excel we only have solver.
    Now the problem is that solver won’t accept the data from the model as it is pasted as values (I guess solver needs explicit solution with formulas), because there is no analytical solution, and as I mentioned earlier, I used newton-raphson iterative method for solution.
    I tried to write a macro that utilizes solver for optimization, it calls VBA1 and tries to minimize SSE, but nothing really happens. VBA1 inputs the solution as values, solver tries to change variables but nothing happens. I am not sure why it behaves like this.
    Is it possible to write a VBA utilizing solver so it can optimize variables and minimize SSE in this problem? If not possible to utilize solver then why?

    I do not have a spreadsheet with me right now, because it is an old problem that I couldn’t solve. Need to search for the file.
    I have my original post in this forum, by not able to give you a link because I am a new user)
    Last edited by nurlanj; 10-02-2023 at 01:07 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Looping and Solver
    By junejaja in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2008, 11:53 AM
  2. Solver Package and VBA Macros
    By junejaja in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2008, 09:02 PM
  3. Excel Solver giving wrong optimal solution
    By gtg430i in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2008, 02:29 PM
  4. Solver and Worksheet events
    By whuahu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2007, 09:38 AM
  5. SOLVER add-on problems
    By fl4sh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2007, 12:10 PM

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