aggerdanny
New Member
- Joined
- Oct 1, 2023
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
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. This is important. Basically I can input variables, run macro VBA1 and it gives results as values.
Now I need to solve a reverse problem, estimate variables by minimizing SSE between real data and the model. The problem is that macro only inputs the data as values, and solver doesn’t want to work this way. I guess my VBA1 should work as input for the solver, but I don’t know how to do it.
I tried to write a macro that utilizes solver for optimization, first it calls VBA1 and tries to minimize SSE, but as far as I understand it cannot work with values.
Is it possible to write a VBA utilizing solver so it can optimize this problem?
Now I need to solve a reverse problem, estimate variables by minimizing SSE between real data and the model. The problem is that macro only inputs the data as values, and solver doesn’t want to work this way. I guess my VBA1 should work as input for the solver, but I don’t know how to do it.
I tried to write a macro that utilizes solver for optimization, first it calls VBA1 and tries to minimize SSE, but as far as I understand it cannot work with values.
Is it possible to write a VBA utilizing solver so it can optimize this problem?