ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Determining if a Solution was Found Using VB & Solver (https://www.excelbanter.com/excel-programming/337452-determining-if-solution-found-using-vbulletin-solver.html)

MArmstrong

Determining if a Solution was Found Using VB & Solver
 
I'm trying to find a way to determine within a VB function if solver has
found a valid solution.

I've written a routine that runs the solver mutiple times (dozens ...
sometimes hundreds) for a problem starting from different input values for
the adjustable cells. I then record the adjustable cell values for results
that meet certain criteria.

The problem I have is that I can't find a way to get visibility into whether
Solver found a solution on a specific iteration (iteration here means a
complete execution of solver ofr a set of starting values). Once solver is
complete, there is apparently no way to tell whether it succeeded in meeting
all of the restraints. I'd like to be able to tell my routine not to save
values for iterations in which a solution was not found.

Any help would be appreciated.

Tushar Mehta

Determining if a Solution was Found Using VB & Solver
 
See Dana DeLouis' post at
http://groups.google.com/group/micro...gramming/tree/
browse_frm/thread/e786b6a2cbf8026c/da6153c471a7f6e4

which also points to
http://www.solver.com/suppstdmsgresult.htm

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
I'm trying to find a way to determine within a VB function if solver has
found a valid solution.

I've written a routine that runs the solver mutiple times (dozens ...
sometimes hundreds) for a problem starting from different input values for
the adjustable cells. I then record the adjustable cell values for results
that meet certain criteria.

The problem I have is that I can't find a way to get visibility into whether
Solver found a solution on a specific iteration (iteration here means a
complete execution of solver ofr a set of starting values). Once solver is
complete, there is apparently no way to tell whether it succeeded in meeting
all of the restraints. I'd like to be able to tell my routine not to save
values for iterations in which a solution was not found.

Any help would be appreciated.



All times are GMT +1. The time now is 04:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com