#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Solver gotchas

I apologize for the open-ended question.

I am about to embark on a complicated project where I need to use "solver"
and I am gathering some information before I jump in. BTW, I am Using Excel
2003.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?

Are there any other similar "gotchas" in solver. I am looking for this kind
of incompatibilities. For instance, does it work if some of the cells
involved contain user-defined VBA functions?

I am not asking about cases where the solver does not converge, takes too
long, or converges to a local (rather than global) peak. I know those are
facts of life in numerical optimization.

Thanks,

Gabriel


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 690
Default Solver gotchas

Hi.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?


I don't believe this is true. The 'Array' function "Sumproduct()" is a
common function used in the Target Cell.

does it work if some of the cells
involved contain user-defined VBA functions?


Yes. It works. One just has to make sure the function is not
Discontinuous. For example, don't use Max, Min, IF(), Abs()...etc.
This applies to the worksheet also.

= = =
Good luck. :)
Dana DeLouis



G.R. Toro wrote:
I apologize for the open-ended question.

I am about to embark on a complicated project where I need to use "solver"
and I am gathering some information before I jump in. BTW, I am Using Excel
2003.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?

Are there any other similar "gotchas" in solver. I am looking for this kind
of incompatibilities. For instance, does it work if some of the cells
involved contain user-defined VBA functions?

I am not asking about cases where the solver does not converge, takes too
long, or converges to a local (rather than global) peak. I know those are
facts of life in numerical optimization.

Thanks,

Gabriel


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Solver gotchas

Dana,

Thanks for your response. Regarding array formulas, I am concerned about
the ones that one enters using CTRL+SHIFT+ENTER and show up enclosed in {}
braces. In that sense, a formula including sumproduct() is not necessarily
an array formula.

Thanks,

Gabriel


"Dana DeLouis" wrote in message
...
Hi.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?


I don't believe this is true. The 'Array' function "Sumproduct()" is a
common function used in the Target Cell.

does it work if some of the cells
involved contain user-defined VBA functions?


Yes. It works. One just has to make sure the function is not
Discontinuous. For example, don't use Max, Min, IF(), Abs()...etc.
This applies to the worksheet also.

= = =
Good luck. :)
Dana DeLouis



G.R. Toro wrote:
I apologize for the open-ended question.

I am about to embark on a complicated project where I need to use
"solver" and I am gathering some information before I jump in. BTW, I am
Using Excel 2003.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?

Are there any other similar "gotchas" in solver. I am looking for this
kind of incompatibilities. For instance, does it work if some of the
cells involved contain user-defined VBA functions?

I am not asking about cases where the solver does not converge, takes too
long, or converges to a local (rather than global) peak. I know those
are facts of life in numerical optimization.

Thanks,

Gabriel



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default Solver gotchas

a formula including sumproduct() is not necessarily
an array formula.


Hi. If I change the Target formula from:
=Sumproduct(A2:A6,B2:B6)

to:
=SUM(A2:A6*B2:B6) Ctrl+Shift+Enter

Solver works just fine.
So yes, an Array formula in the target is fine.
In fact, they are usually preferred for simplicity.
(depending on the model of course)

= = =
Dana DeLouis


G.R. Toro wrote:
Dana,

Thanks for your response. Regarding array formulas, I am concerned about
the ones that one enters using CTRL+SHIFT+ENTER and show up enclosed in {}
braces. In that sense, a formula including sumproduct() is not necessarily
an array formula.

Thanks,

Gabriel


"Dana DeLouis" wrote in message
...
Hi.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?

I don't believe this is true. The 'Array' function "Sumproduct()" is a
common function used in the Target Cell.

does it work if some of the cells
involved contain user-defined VBA functions?

Yes. It works. One just has to make sure the function is not
Discontinuous. For example, don't use Max, Min, IF(), Abs()...etc.
This applies to the worksheet also.

= = =
Good luck. :)
Dana DeLouis



G.R. Toro wrote:
I apologize for the open-ended question.

I am about to embark on a complicated project where I need to use
"solver" and I am gathering some information before I jump in. BTW, I am
Using Excel 2003.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?

Are there any other similar "gotchas" in solver. I am looking for this
kind of incompatibilities. For instance, does it work if some of the
cells involved contain user-defined VBA functions?

I am not asking about cases where the solver does not converge, takes too
long, or converges to a local (rather than global) peak. I know those
are facts of life in numerical optimization.

Thanks,

Gabriel



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Solver gotchas

Thank you.

Gabriel

"Dana DeLouis" wrote in message
...
a formula including sumproduct() is not necessarily
an array formula.


Hi. If I change the Target formula from:
=Sumproduct(A2:A6,B2:B6)

to:
=SUM(A2:A6*B2:B6) Ctrl+Shift+Enter

Solver works just fine.
So yes, an Array formula in the target is fine.
In fact, they are usually preferred for simplicity.
(depending on the model of course)

= = =
Dana DeLouis


G.R. Toro wrote:
Dana,

Thanks for your response. Regarding array formulas, I am concerned about
the ones that one enters using CTRL+SHIFT+ENTER and show up enclosed in
{} braces. In that sense, a formula including sumproduct() is not
necessarily an array formula.

Thanks,

Gabriel


"Dana DeLouis" wrote in message
...
Hi.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?
I don't believe this is true. The 'Array' function "Sumproduct()" is a
common function used in the Target Cell.

does it work if some of the cells
involved contain user-defined VBA functions?
Yes. It works. One just has to make sure the function is not
Discontinuous. For example, don't use Max, Min, IF(), Abs()...etc.
This applies to the worksheet also.

= = =
Good luck. :)
Dana DeLouis



G.R. Toro wrote:
I apologize for the open-ended question.

I am about to embark on a complicated project where I need to use
"solver" and I am gathering some information before I jump in. BTW, I
am Using Excel 2003.

I seem to recall that solver does not work when the objective function
contains an array formula. Can anyone confirm this?

Are there any other similar "gotchas" in solver. I am looking for this
kind of incompatibilities. For instance, does it work if some of the
cells involved contain user-defined VBA functions?

I am not asking about cases where the solver does not converge, takes
too long, or converges to a local (rather than global) peak. I know
those are facts of life in numerical optimization.

Thanks,

Gabriel





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
XL Solver Baldy_Couso Excel Worksheet Functions 1 February 5th 07 02:00 PM
Solver Randy Excel Discussion (Misc queries) 1 January 21st 07 04:36 PM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
solver... Jambruins Excel Discussion (Misc queries) 0 May 23rd 05 06:42 PM
solver [email protected] Excel Discussion (Misc queries) 0 May 20th 05 06:34 PM


All times are GMT +1. The time now is 05:49 AM.

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

About Us

"It's about Microsoft Excel"