472,110 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

How to run Excel Solver function from Python

I am trying to write a Python script file which analyses data in an
iterative manner. During each iteration, I wish to utilise the Solver
function in Excel to perform some constrained, non-linear fitting to
the data. I have a VBA macro which runs the Solver, and am using
self.xlapp = win32com.client.dynamic.Dispatch("Excel.Applicatio n")

I am using the Python script to interface with another software called
ABAQUS and am executing the script through the ABAQUS Python
interpreter (which is Python 2.0). Howvever, when I run the script I
get the error

'Solver : An unexpected internal error has occurred, or available
memory was exhausted'

Could anyone please provide some explanation to this problem? The
macro and Solver run fine if I don't call from the Python script.
Thank you and any help is much appreciated.
Jul 18 '05 #1
1 6589
Having widened my search, I found that this problem seems to be
related to Excel itself and not many have found a solution. But I
found this and it works a treat!!


Sorry for posting this problem at the wrong place.
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Allison Bailey | last post: by
reply views Thread by Josh Golden | last post: by
3 posts views Thread by Mr.Doubt | last post: by
1 post views Thread by Laszlo Zsolt Nagy | last post: by
2 posts views Thread by tristan.chaplin | last post: by
7 posts views Thread by Holger Fitschen | last post: by
8 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.