Unsolved

This post is more than 5 years old

10 Posts

12221

August 20th, 2007 15:00

Solver Faiure in Excel 2003

I have used the add-in Solver in a VB macro successfully for a number of years. Currently when stepping into Solver I see at about the 3rd step, "Call (SolveDLL, 0)", and then steps that indicate an error has ocured and an exit of the call. I have run the Detect and Repair option under Excell Help, but there has been no change in Solver's behavior. I tried unchecking Solver on the Add-In menue, saving my file, closing the file, reopening and checking Solver. No change. Please advise.
 
OS is Win XP Pro, SP 2; Inspiron 5150; RAM 384 MB;2.66GHz Pentium 4; 27.9 GB disk, 50% free.

1.7K Posts

August 20th, 2007 16:00

Does the Solver add-in work normally, not called by the macro?

10 Posts

August 21st, 2007 13:00

No--I get the same action, even when I reduce or even eliminate all constraints. The spreadsheet on which it operates contains 32 decision variables that modify a 32 x 32 table (not an array), to produce a tabel sum, and a weighted 32 component list sum. The model represents an investment portfolio of mutual funds, the amount invested in each, the rate of return on each, and the standard deviation of each. The 32 x 32 table represents the weighted covariances of the funds to derive the portfolio standard deviation. The 32 component list sums to provide the portfolio rate of return. This model has been successful, if sometimes balky (with local optima), in the past (although at the 25 rather than 32 component level), and I don't think the fault lies in the model, but rather in a corruption of Solver.

1.7K Posts

August 21st, 2007 14:00

Try renaming the solver add-in files, then run detect and repair.
 
Rename the 2 files found in the following folder
 
C:\Program Files\Microsoft Office\OFFICE11\Library\SOLVER
 
solver32.dll
solver.xla
 

10 Posts

August 21st, 2007 18:00

Mr. Bach--I did as you suggested (in my Administrator account). The files were regenerated, but the results were unchanged. I tested within my macro because that enables me to step into Solver. The steps in Solver look like this (but without the step numbers):
 
Cell:
    

10 Posts

August 21st, 2007 18:00

Mr. Bach--I did as you suggested (in my Administrator account). The files were regenerated, but the results were unchanged. I tested within my macro because that enables me to step into Solver. The steps in Solver look like this (but without the step numbers):
 
Cell:
     

10 Posts

August 21st, 2007 18:00

Mr. Bach--I did as you suggested, renaming and regenerating the 2 files. The new ones did show up. This was done in the Administrator account. I tested by using the macro (and without the macro) because the macro allows me to step into Solver. The Solver dialog box showed the following steps (without the step numbers):
 
1. Cell:
        [SOLVER.XLA]Excel4Functions!A1
2. Cell
        [SOLVER.XLA]Excel4Functions!A2
            Formula:
              =ERROR(FALSE)
3. Cell:
        [SOLVER.XLA]Excel4Functions!A3
             Formula:
              =CALL(SolveDLL,0)
4. Cell:
        [SOLVER.XLA]Excel4Functions!A4
              Formula:
                 =ERROR(TRUE)
5. Cell:
        [SOLVER.XLA]Excel4Functions!A5
              Formula:
                 =IF(ISERROR(TheCall)
6. Cell:
        [SOLVER.XLA]Excel4Functions!A8
              Formula:
                  =RETURN(TheCall)
Solver then terminates. When Solver is executed without the macro, of course none of this is visible. A "Solver could not find a feasible solution" message appears on the results dialog. 
Thanks for your advisories so far--Pete Schoeffel

1.7K Posts

August 21st, 2007 19:00

Pete
 
The step through does not help me. Can you post the entire procedure? Or just email me a copy of the file, if that is OK with you. Aslo, what version of Excel are you using?
 
 
 


Message Edited by abach on 08-21-2007 04:35 PM
No Events found!

Top