Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 390
Default VB: If Solver found no feasible solution

Hi,

I have written a macro that runs Solver over a dataset and let VB create
messages etc with the outcomes of solver.
However, when Solver could not find a feasible solution, can I relate an
action to this as well? For instance by creating a new value for a cell in
the worksheet?(or create a messagebox for instance)

Thanks, you would help me a lot with this!
Max
  #2   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 390
Default VB: If Solver found no feasible solution

I could help myself with:
http://www.frontsys.com/123/lts00104.htm

"Max" wrote:

Hi,

I have written a macro that runs Solver over a dataset and let VB create
messages etc with the outcomes of solver.
However, when Solver could not find a feasible solution, can I relate an
action to this as well? For instance by creating a new value for a cell in
the worksheet?(or create a messagebox for instance)

Thanks, you would help me a lot with this!
Max

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 947
Default VB: If Solver found no feasible solution

I could help myself with:
http://www.frontsys.com/123/lts00104.htm


Just note that your link is for Lotus 123. Excel uses True/False instead of
1/0.
I don't believe return code 14 is used in Excel, but don't hold me to it.
--
Dana DeLouis

"Max" wrote in message
...
I could help myself with:
http://www.frontsys.com/123/lts00104.htm

"Max" wrote:

Hi,

I have written a macro that runs Solver over a dataset and let VB create
messages etc with the outcomes of solver.
However, when Solver could not find a feasible solution, can I relate an
action to this as well? For instance by creating a new value for a cell
in
the worksheet?(or create a messagebox for instance)

Thanks, you would help me a lot with this!
Max



  #4   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 390
Default VB: If Solver found no feasible solution

Thank you Dana, you are right, but I only needed the cases for "did not find
optimal solution" (5) anyhow. Thanks again,
Max

"Dana DeLouis" wrote:

I could help myself with:
http://www.frontsys.com/123/lts00104.htm


Just note that your link is for Lotus 123. Excel uses True/False instead of
1/0.
I don't believe return code 14 is used in Excel, but don't hold me to it.
--
Dana DeLouis

"Max" wrote in message
...
I could help myself with:
http://www.frontsys.com/123/lts00104.htm

"Max" wrote:

Hi,

I have written a macro that runs Solver over a dataset and let VB create
messages etc with the outcomes of solver.
However, when Solver could not find a feasible solution, can I relate an
action to this as well? For instance by creating a new value for a cell
in
the worksheet?(or create a messagebox for instance)

Thanks, you would help me a lot with this!
Max




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default VB: If Solver found no feasible solution

I've seen the FrontSys web pages that document this for Excel, but it is
nearly impossible to find anything on their site. However, with a little
diligence I came up with:

http://www.solver.com/suppstdmsgresult.htm

Solver found a solution. All constraints and optimality conditions are
satisfied. (0)
Solver has converged to the current solution. All constraints are
satisfied. (1)
Solver cannot improve the current solution. All constraints are
satisfied. (2)
Stop chosen when the maximum iteration limit was reached. (3)
The Set Target Cell values do not converge. (4)
Solver could not find a feasible solution. (5)
Solver stopped at user's request. (6)
The conditions for Assume Linear Model are not satisfied. (7)
The problem is too large for Solver to handle. (8)
Solver encountered an error value in a target or constraint cell. (9)
Stop chosen when the maximum time limit was reached. (10)
There is not enough memory available to solve the problem. (11)
Another Excel instance is using SOLVER.DLL. Try again later. (12)
Error in model. Please verify that all cells and constraints are valid.
(13)



- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Max" wrote in message
...
Thank you Dana, you are right, but I only needed the cases for "did not
find
optimal solution" (5) anyhow. Thanks again,
Max

"Dana DeLouis" wrote:

I could help myself with:
http://www.frontsys.com/123/lts00104.htm


Just note that your link is for Lotus 123. Excel uses True/False instead
of
1/0.
I don't believe return code 14 is used in Excel, but don't hold me to it.
--
Dana DeLouis

"Max" wrote in message
...
I could help myself with:
http://www.frontsys.com/123/lts00104.htm

"Max" wrote:

Hi,

I have written a macro that runs Solver over a dataset and let VB
create
messages etc with the outcomes of solver.
However, when Solver could not find a feasible solution, can I relate
an
action to this as well? For instance by creating a new value for a
cell
in
the worksheet?(or create a messagebox for instance)

Thanks, you would help me a lot with this!
Max








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
FOUND SOLUTION THANKS ANYONE WHO REPLIED blabla Excel Discussion (Misc queries) 1 May 26th 08 05:45 PM
Using Solver - integer solution Dil Excel Discussion (Misc queries) 3 May 12th 07 02:31 PM
Why is excel solver saying that there is not a feasible solution? jt13 Excel Programming 1 January 17th 06 05:25 PM
Determining if a Solution was Found Using VB & Solver MArmstrong Excel Programming 1 August 17th 05 03:11 AM
Solver won't keep the solution. oleole Excel Programming 0 June 29th 04 11:38 PM


All times are GMT +1. The time now is 02:49 PM.

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"