Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default "DoEvents"-type behavior in Solver?

I have a spreadsheet wherein I have a col of equations(f1:fx), all using the value in cell e1.
Then I have cell g1, which takes the product of all the cells (f1:fx).

I set solver to find max for cell g1 by changing e1. The problem is, whenever Solver sets a vale for e1, the values in f1:fx never change (there would have to be an intervening VBA "DoEvents" for that to occur) an thus I never can solve for the value in e1 resulting in the max g1. (the reason I have to do this 'is because otherwise I rapidly get an out of memory error as the equation for g1, if I didn't break it down across a bunch of cells f1:fx, would be too long.

How can I use solver to solve this? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default "DoEvents"-type behavior in Solver?

On 13/02/2014 02:02, RVic wrote:
I have a spreadsheet wherein I have a col of equations(f1:fx), all using the value in cell e1.
Then I have cell g1, which takes the product of all the cells (f1:fx).

I set solver to find max for cell g1 by changing e1. The problem is, whenever Solver sets a vale for e1, the values in f1:fx never change (there would have to be an intervening VBA "DoEvents" for that to occur) an thus I never can solve for the value in e1 resulting in the max g1. (the reason I have to do this 'is because otherwise I rapidly get an out of memory error as the equation for g1, if I didn't break it down across a bunch of cells f1:fx, would be too long.

How can I use solver to solve this? Thanks.


As I regularly use Solver to optimise SUM(f1:fx) and also VBA functions
I cannot quite understand what your problem is. I haven't noticed any
bad behaviour in the Solver routine apart from a bit of numerical
instabliity and a tendency sometimes to latch onto local optima or
pretend it has a solution when started close to the global optimum.

It is much better for my problems than the MINVERSE or LINEST code.

Perhaps if you posted a concrete example you reckon fails it would be
more obvious. The main reason I use Solver is that the statistical
functions like LINEST are deeply flawed for difficult datasets. And it
also makes it easy to do minimum 1-norm fitting not just least squares.

--
Regards,
Martin Brown
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Type mismatch" when I try to fill an Array variable with "+" [email protected] Excel Discussion (Misc queries) 1 April 17th 07 01:28 PM
how do I type "itis" without Excel putting a space "it is"? Max Excel Worksheet Functions 4 March 18th 07 10:22 PM
Where is the toolbar with the "bold type", "font type", options fwccbcc New Users to Excel 2 May 3rd 06 09:11 PM
"FIND" generates "Type mismatch" error quartz[_2_] Excel Programming 5 November 16th 04 03:29 PM


All times are GMT +1. The time now is 03:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"